]> 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>
Mon, 26 Sep 2022 06:50:19 +0000 (08:50 +0200)
tests/Makefile.am
tests/methods/main-entry-exists.test [new file with mode: 0644]

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