[vala/staging: 3/3] tests: Add "entry point exists" test to increase coverage




commit 9c8a449155c7bd36670ced5fbc98834592a3a65f
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]