summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2021-12-12 18:47:53 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2021-12-12 18:47:53 +0100
commit5d2d9a2e4f2a30932a6e0d1191460c77f62611dc (patch)
tree0addc5861c197b860af487a215fb8f329bc40347
parent29bef676c2eeb9d0b12cabff7e3af7ce0b93304e (diff)
downloadvala-5d2d9a2e4f2a30932a6e0d1191460c77f62611dc.tar.gz
tests: Add more "chain up" tests to increase coverage
-rw-r--r--tests/Makefile.am2
-rw-r--r--tests/chainup/base-arguments.test14
-rw-r--r--tests/chainup/base-private.test14
3 files changed, 30 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index cae6103ab..d261e6052 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -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
index 000000000..c993a66a4
--- /dev/null
+++ b/tests/chainup/base-arguments.test
@@ -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
index 000000000..9d4776146
--- /dev/null
+++ b/tests/chainup/base-private.test
@@ -0,0 +1,14 @@
+Invalid Code
+
+class Foo {
+ private Foo () {
+ }
+}
+
+class Bar : Foo {
+ public Bar () {
+ }
+}
+
+void main () {
+}