[vala/0.42] tests: Add "static fields" to compact class to increase coverage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.42] tests: Add "static fields" to compact class to increase coverage
- Date: Mon, 26 Nov 2018 09:13:43 +0000 (UTC)
commit f3ad20703ec76b64908fb79509b3dac8862f50b2
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Nov 17 17:22:36 2018 +0100
tests: Add "static fields" to compact class to increase coverage
tests/objects/fields.vala | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/tests/objects/fields.vala b/tests/objects/fields.vala
index 8229e978e..4f398eb70 100644
--- a/tests/objects/fields.vala
+++ b/tests/objects/fields.vala
@@ -3,6 +3,8 @@ using GLib;
[Compact]
class CompactTest {
public int initialized_field = 24;
+ private static int private_static_field = 25;
+ public static int public_static_field = 26;
}
class Maman.Foo : Object {
@@ -92,7 +94,7 @@ class Maman.Bar : Foo {
var compact = new CompactTest ();
stdout.printf (" %d", compact.initialized_field);
- stdout.printf (" 25\n");
+ stdout.printf (" 27\n");
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]