[vala/staging] tests: Add "entry point exists" test to increase coverage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] tests: Add "entry point exists" test to increase coverage
- Date: Mon, 26 Sep 2022 06:49:15 +0000 (UTC)
commit f91b1f8c6f55e06ca56eafe7604e21850fbaf727
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Aug 17 10:31:41 2022 +0200
tests: Add "entry point exists" test to increase coverage
tests/Makefile.am | 1 +
tests/methods/main-entry-exists.test | 9 +++++++++
2 files changed, 10 insertions(+)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index f549040d8..dd6f39684 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -245,6 +245,7 @@ TESTS = \
methods/argument-named.vala \
methods/delegate-target.vala \
methods/generics.vala \
+ methods/main-entry-exists.test \
methods/nowrapper-interface.vala \
methods/nowrapper-no-vfunc.test \
methods/parameter-ccode-type.vala \
diff --git a/tests/methods/main-entry-exists.test b/tests/methods/main-entry-exists.test
new file mode 100644
index 000000000..8681446cf
--- /dev/null
+++ b/tests/methods/main-entry-exists.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+namespace Foo {
+ public static void main () {
+ }
+}
+
+void main () {
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]