From: Rico Tzschichholz Date: Fri, 15 Oct 2021 10:02:21 +0000 (+0200) Subject: tests: Add more "type-arguments" tests to increase coverage X-Git-Tag: 0.55.1~141 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ffd65e03ad10cc8cf6481d2174e877ce3e9b6ac;p=thirdparty%2Fvala.git tests: Add more "type-arguments" tests to increase coverage --- diff --git a/tests/Makefile.am b/tests/Makefile.am index f35f5aeca..7cd0168b7 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1082,6 +1082,8 @@ TESTS = \ semantic/method-private-virtual.test \ semantic/method-protected.test \ semantic/method-return-accessibility.test \ + semantic/method-return-too-few-type-arguments.test \ + semantic/method-return-too-many-type-arguments.test \ semantic/method-return-valist.test \ semantic/method-too-few-type-arguments.test \ semantic/method-too-many-type-arguments.test \ @@ -1102,6 +1104,8 @@ TESTS = \ semantic/parameter-out-default.test \ semantic/parameter-params.test \ semantic/parameter-ref-default.test \ + semantic/parameter-too-few-type-arguments.test \ + semantic/parameter-too-many-type-arguments.test \ semantic/parameter-void.test \ semantic/params-array-multiple.test \ semantic/params-array-objectcreation-multiple.test \ diff --git a/tests/semantic/method-return-too-few-type-arguments.test b/tests/semantic/method-return-too-few-type-arguments.test new file mode 100644 index 000000000..ccd0c0b6d --- /dev/null +++ b/tests/semantic/method-return-too-few-type-arguments.test @@ -0,0 +1,10 @@ +Invalid Code + +class Foo { +} + +Foo bar () { +} + +void main () { +} diff --git a/tests/semantic/method-return-too-many-type-arguments.test b/tests/semantic/method-return-too-many-type-arguments.test new file mode 100644 index 000000000..87ec26c84 --- /dev/null +++ b/tests/semantic/method-return-too-many-type-arguments.test @@ -0,0 +1,10 @@ +Invalid Code + +class Foo { +} + +Foo bar () { +} + +void main () { +} diff --git a/tests/semantic/parameter-too-few-type-arguments.test b/tests/semantic/parameter-too-few-type-arguments.test new file mode 100644 index 000000000..270e6a47b --- /dev/null +++ b/tests/semantic/parameter-too-few-type-arguments.test @@ -0,0 +1,10 @@ +Invalid Code + +class Foo { +} + +void bar (Foo foo) { +} + +void main () { +} diff --git a/tests/semantic/parameter-too-many-type-arguments.test b/tests/semantic/parameter-too-many-type-arguments.test new file mode 100644 index 000000000..d4db6219b --- /dev/null +++ b/tests/semantic/parameter-too-many-type-arguments.test @@ -0,0 +1,10 @@ +Invalid Code + +class Foo { +} + +void bar (Foo foo) { +} + +void main () { +}