]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Add more "chain up" tests to increase coverage
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 12 Dec 2021 17:47:53 +0000 (18:47 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 12 Dec 2021 17:47:53 +0000 (18:47 +0100)
tests/Makefile.am
tests/chainup/base-arguments.test [new file with mode: 0644]
tests/chainup/base-private.test [new file with mode: 0644]

index cae6103ab0ee614e1a8328e3d9aaf0e60f830527..d261e6052e281f51c8f4a9c5eb8acf62a10192e4 100644 (file)
@@ -146,9 +146,11 @@ TESTS = \
        arrays/slice-invalid-start.test \
        arrays/slice-invalid-stop.test \
        arrays/slice-no-array.test \
+       chainup/base-arguments.test \
        chainup/base-class-invalid.test \
        chainup/base-enum-invalid.test \
        chainup/base-invalid.test \
+       chainup/base-private.test \
        chainup/base-struct-invalid.test \
        chainup/class-base.vala \
        chainup/class-base-foo.vala \
diff --git a/tests/chainup/base-arguments.test b/tests/chainup/base-arguments.test
new file mode 100644 (file)
index 0000000..c993a66
--- /dev/null
@@ -0,0 +1,14 @@
+Invalid Code
+
+class Foo {
+    public Foo (int i) {
+    }
+}
+
+class Bar : Foo {
+    public Bar () {
+    }
+}
+
+void main () {
+}
diff --git a/tests/chainup/base-private.test b/tests/chainup/base-private.test
new file mode 100644 (file)
index 0000000..9d47761
--- /dev/null
@@ -0,0 +1,14 @@
+Invalid Code
+
+class Foo {
+    private Foo () {
+    }
+}
+
+class Bar : Foo {
+    public Bar () {
+    }
+}
+
+void main () {
+}