[vala/0.40] tests: Add invalid "multiple base classes" tests to increase coverage



commit b3e63217c875b53ee2fb518b479c635c1adca0a8
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun Nov 3 20:07:40 2019 +0100

    tests: Add invalid "multiple base classes" tests to increase coverage

 tests/Makefile.am                                   |  2 ++
 tests/semantic/class-base-type-multiple.test        | 13 +++++++++++++
 tests/semantic/interface-prerequisite-multiple.test | 13 +++++++++++++
 3 files changed, 28 insertions(+)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 3127f6751..372e246d6 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -583,6 +583,7 @@ TESTS = \
        semantic/chainup-gobject-unsupported-type-property.test \
        semantic/class-base-type-invalid.test \
        semantic/class-base-type-less-accessible.test \
+       semantic/class-base-type-multiple.test \
        semantic/class-compact-field-class.test \
        semantic/class-compact-field-lock.test \
        semantic/class-compact-field-private.test \
@@ -635,6 +636,7 @@ TESTS = \
        semantic/initializer-unknown-type.test \
        semantic/interface-prerequisite-invalid.test \
        semantic/interface-prerequisite-less-accessible.test \
+       semantic/interface-prerequisite-multiple.test \
        semantic/localvariable-owned-to-unowned.test \
        semantic/localvariable-var-static-access-instance-field.test \
        semantic/localvariable-var-static-access-instance-method.test \
diff --git a/tests/semantic/class-base-type-multiple.test b/tests/semantic/class-base-type-multiple.test
new file mode 100644
index 000000000..cb93acfe8
--- /dev/null
+++ b/tests/semantic/class-base-type-multiple.test
@@ -0,0 +1,13 @@
+Invalid Code
+
+class Foo {
+}
+
+class Bar {
+}
+
+class Baz : Foo, Bar {
+}
+
+void main () {
+}
diff --git a/tests/semantic/interface-prerequisite-multiple.test 
b/tests/semantic/interface-prerequisite-multiple.test
new file mode 100644
index 000000000..3420ce167
--- /dev/null
+++ b/tests/semantic/interface-prerequisite-multiple.test
@@ -0,0 +1,13 @@
+Invalid Code
+
+class Foo {
+}
+
+class Bar {
+}
+
+interface Baz : Foo, Bar {
+}
+
+void main () {
+}


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