From: Rico Tzschichholz Date: Fri, 21 Sep 2018 15:47:06 +0000 (+0200) Subject: tests: Add invalid "construct without GObject" test to increase coverage X-Git-Tag: 0.43.1~217 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12a354af4d64dc8cce692499e2aeacde3eabf43a;p=thirdparty%2Fvala.git tests: Add invalid "construct without GObject" test to increase coverage --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 2a780a019..d41f7ccb4 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -510,6 +510,7 @@ TESTS = \ semantic/constant-value-missing.test \ semantic/constant-value-type.test \ semantic/constant-void.test \ + semantic/construct-without-gobject.test \ semantic/delegate-too-few-type-arguments.test \ semantic/delegate-too-many-type-arguments.test \ semantic/enum-empty.test \ diff --git a/tests/semantic/construct-without-gobject.test b/tests/semantic/construct-without-gobject.test new file mode 100644 index 000000000..ac500d7d5 --- /dev/null +++ b/tests/semantic/construct-without-gobject.test @@ -0,0 +1,9 @@ +Invalid Code + +class Foo { + construct { + } +} + +void main () { +}