]> 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, 9 Jan 2022 08:59:37 +0000 (09:59 +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 c097fbc20a77cd62ba311fff73478857fd614b8d..c0ea7d230eff131779819914d1cd484ab9a57c6f 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 () {
+}