]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Add "entry point exists" test to increase coverage
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 17 Aug 2022 08:31:41 +0000 (10:31 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 27 Oct 2022 08:25:02 +0000 (10:25 +0200)
tests/Makefile.am
tests/methods/main-entry-exists.test [new file with mode: 0644]

index dd1ccde0affbc395b42dc2300738372da1478950..78f3a14567c4636dcfea73874d60711d5155e0fb 100644 (file)
@@ -244,6 +244,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 (file)
index 0000000..8681446
--- /dev/null
@@ -0,0 +1,9 @@
+Invalid Code
+
+namespace Foo {
+       public static void main () {
+       }
+}
+
+void main () {
+}