[vala/staging] tests: Add invalid "construct without GObject" test to increase coverage



commit 12a354af4d64dc8cce692499e2aeacde3eabf43a
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Fri Sep 21 17:47:06 2018 +0200

    tests: Add invalid "construct without GObject" test to increase coverage

 tests/Makefile.am                             | 1 +
 tests/semantic/construct-without-gobject.test | 9 +++++++++
 2 files changed, 10 insertions(+)
---
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 () {
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]