From: Rico Tzschichholz Date: Sun, 12 Dec 2021 17:47:53 +0000 (+0100) Subject: tests: Add more "chain up" tests to increase coverage X-Git-Tag: 0.52.10~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c041eb5be55a14b5d68ce19ca862ad2c004c7300;p=thirdparty%2Fvala.git tests: Add more "chain up" tests to increase coverage --- diff --git a/tests/Makefile.am b/tests/Makefile.am index c097fbc20..c0ea7d230 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 () { +}