From: Rico Tzschichholz Date: Thu, 12 Jul 2018 09:46:35 +0000 (+0200) Subject: tests: Add invalid "empty" enum/errordomain tests to increase coverage X-Git-Tag: 0.41.90~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df5f39c630de2f7ba0c7c28e1ba85f6d75bcf6de;p=thirdparty%2Fvala.git tests: Add invalid "empty" enum/errordomain tests to increase coverage --- diff --git a/tests/Makefile.am b/tests/Makefile.am index f7bc2a8f3..3488b443c 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -497,6 +497,8 @@ TESTS = \ semantic/constant-void.test \ semantic/delegate-too-few-type-arguments.test \ semantic/delegate-too-many-type-arguments.test \ + semantic/enum-empty.test \ + semantic/errordomain-empty.test \ semantic/field-accessibility.test \ semantic/field-compact-static.test \ semantic/field-external.test \ diff --git a/tests/semantic/enum-empty.test b/tests/semantic/enum-empty.test new file mode 100644 index 000000000..120d0849e --- /dev/null +++ b/tests/semantic/enum-empty.test @@ -0,0 +1,7 @@ +Invalid Code + +enum Foo { +} + +void main () { +} diff --git a/tests/semantic/errordomain-empty.test b/tests/semantic/errordomain-empty.test new file mode 100644 index 000000000..be167a384 --- /dev/null +++ b/tests/semantic/errordomain-empty.test @@ -0,0 +1,7 @@ +Invalid Code + +errordomain Foo { +} + +void main () { +}