]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Add invalid "empty" enum/errordomain tests to increase coverage
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 12 Jul 2018 09:46:35 +0000 (11:46 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 12 Jul 2018 09:47:44 +0000 (11:47 +0200)
tests/Makefile.am
tests/semantic/enum-empty.test [new file with mode: 0644]
tests/semantic/errordomain-empty.test [new file with mode: 0644]

index f7bc2a8f3f5453f17a5afa5b7d87808490c6b637..3488b443cc113b4446ec8c6fdf00afc25247f381 100644 (file)
@@ -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 (file)
index 0000000..120d084
--- /dev/null
@@ -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 (file)
index 0000000..be167a3
--- /dev/null
@@ -0,0 +1,7 @@
+Invalid Code
+
+errordomain Foo {
+}
+
+void main () {
+}