[vala/0.46] tests: Extend "fastvapi" test to increase coverage



commit 6573957bbb626054c530ee2bd9a3aba45f8ca66e
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Fri Oct 4 15:09:10 2019 +0200

    tests: Extend "fastvapi" test to increase coverage

 tests/fastvapi/fastvapitest.vala          | 4 ++++
 tests/fastvapi/fastvapitest.vapi-expected | 5 +++++
 2 files changed, 9 insertions(+)
---
diff --git a/tests/fastvapi/fastvapitest.vala b/tests/fastvapi/fastvapitest.vala
index b711b5c29..bfbd371c6 100644
--- a/tests/fastvapi/fastvapitest.vala
+++ b/tests/fastvapi/fastvapitest.vala
@@ -37,4 +37,8 @@ namespace FastVapi {
                public void method () {
                }
        }
+
+       public struct TestSubStruct : TestStruct {
+               public static int static_field_name;
+       }
 }
diff --git a/tests/fastvapi/fastvapitest.vapi-expected b/tests/fastvapi/fastvapitest.vapi-expected
index 1826b8299..3a8ab23b5 100644
--- a/tests/fastvapi/fastvapitest.vapi-expected
+++ b/tests/fastvapi/fastvapitest.vapi-expected
@@ -31,6 +31,11 @@ namespace FastVapi {
                [Source (filename = "fastvapitest.vala", line = 13, column = 3)]
                public int field_name;
        }
+       [Source (filename = "fastvapitest.vala", line = 41, column = 2)]
+       public struct TestSubStruct : TestStruct {
+               [Source (filename = "fastvapitest.vala", line = 42, column = 3)]
+               public static int static_field_name;
+       }
        [Source (filename = "fastvapitest.vala", line = 4, column = 2)]
        public enum EnumTest {
                [Source (filename = "fastvapitest.vala", line = 5, column = 3)]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]