[vala/0.40] tests: Add invalid "construct without GObject" test to increase coverage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] tests: Add invalid "construct without GObject" test to increase coverage
- Date: Mon, 24 Sep 2018 08:43:51 +0000 (UTC)
commit b7d2eb22c3a4f4ab7caef1301d7fc0ed6bec7cba
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 a55e3a621..f64b73f1c 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -497,6 +497,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]