[vala/0.42] 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.42] tests: Add invalid "construct without GObject" test to increase coverage
- Date: Sun, 23 Sep 2018 09:06:45 +0000 (UTC)
commit a364a0462f811ca245854affb3b06443d405a1d4
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]