[vala/0.54] tests: Add more "chain up" tests to increase coverage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.54] tests: Add more "chain up" tests to increase coverage
- Date: Thu, 16 Dec 2021 07:23:40 +0000 (UTC)
commit 6d8ff054c88a20163ba8d0afd8936d3eb088ba85
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Dec 12 18:47:53 2021 +0100
tests: Add more "chain up" tests to increase coverage
tests/Makefile.am | 2 ++
tests/chainup/base-arguments.test | 14 ++++++++++++++
tests/chainup/base-private.test | 14 ++++++++++++++
3 files changed, 30 insertions(+)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 4dfbfbfff..34ad1d0e2 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -146,9 +146,11 @@ TESTS = \
arrays/slice-invalid-start.test \
arrays/slice-invalid-stop.test \
arrays/slice-no-array.test \
+ chainup/base-arguments.test \
chainup/base-class-invalid.test \
chainup/base-enum-invalid.test \
chainup/base-invalid.test \
+ chainup/base-private.test \
chainup/base-struct-invalid.test \
chainup/class-base.vala \
chainup/class-base-foo.vala \
diff --git a/tests/chainup/base-arguments.test b/tests/chainup/base-arguments.test
new file mode 100644
index 000000000..c993a66a4
--- /dev/null
+++ b/tests/chainup/base-arguments.test
@@ -0,0 +1,14 @@
+Invalid Code
+
+class Foo {
+ public Foo (int i) {
+ }
+}
+
+class Bar : Foo {
+ public Bar () {
+ }
+}
+
+void main () {
+}
diff --git a/tests/chainup/base-private.test b/tests/chainup/base-private.test
new file mode 100644
index 000000000..9d4776146
--- /dev/null
+++ b/tests/chainup/base-private.test
@@ -0,0 +1,14 @@
+Invalid Code
+
+class Foo {
+ private Foo () {
+ }
+}
+
+class Bar : Foo {
+ public Bar () {
+ }
+}
+
+void main () {
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]