[vala/0.36] tests: Add invalid "base" tests to increase coverage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.36] tests: Add invalid "base" tests to increase coverage
- Date: Tue, 16 Jan 2018 17:17:09 +0000 (UTC)
commit dbfc82a58c70a5e9010120a5d518c34fb280181e
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Jan 7 19:00:12 2018 +0100
tests: Add invalid "base" tests to increase coverage
tests/Makefile.am | 4 ++++
tests/chainup/base-class-invalid.test | 10 ++++++++++
tests/chainup/base-enum-invalid.test | 11 +++++++++++
tests/chainup/base-invalid.test | 5 +++++
tests/chainup/base-struct-invalid.test | 10 ++++++++++
5 files changed, 40 insertions(+), 0 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index f950ccf..edbef43 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -48,6 +48,10 @@ TESTS = \
basic-types/bug777697.test \
basic-types/bug787152.vala \
basic-types/bug788775.vala \
+ chainup/base-class-invalid.test \
+ chainup/base-enum-invalid.test \
+ chainup/base-invalid.test \
+ chainup/base-struct-invalid.test \
chainup/class-base.vala \
chainup/class-base-foo.vala \
chainup/class-object.vala \
diff --git a/tests/chainup/base-class-invalid.test b/tests/chainup/base-class-invalid.test
new file mode 100644
index 0000000..0e3efe1
--- /dev/null
+++ b/tests/chainup/base-class-invalid.test
@@ -0,0 +1,10 @@
+Invalid Code
+
+class Foo {
+ public Foo () {
+ base ();
+ }
+}
+
+void main () {
+}
diff --git a/tests/chainup/base-enum-invalid.test b/tests/chainup/base-enum-invalid.test
new file mode 100644
index 0000000..29f9836
--- /dev/null
+++ b/tests/chainup/base-enum-invalid.test
@@ -0,0 +1,11 @@
+Invalid Code
+
+enum Foo {
+ BAR;
+ public void bar () {
+ base ();
+ }
+}
+
+void main () {
+}
diff --git a/tests/chainup/base-invalid.test b/tests/chainup/base-invalid.test
new file mode 100644
index 0000000..ea4ac35
--- /dev/null
+++ b/tests/chainup/base-invalid.test
@@ -0,0 +1,5 @@
+Invalid Code
+
+void main () {
+ base ();
+}
diff --git a/tests/chainup/base-struct-invalid.test b/tests/chainup/base-struct-invalid.test
new file mode 100644
index 0000000..5b2fb26
--- /dev/null
+++ b/tests/chainup/base-struct-invalid.test
@@ -0,0 +1,10 @@
+Invalid Code
+
+struct Foo {
+ public Foo () {
+ base ();
+ }
+}
+
+void main () {
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]