[vala/0.42] tests: Extend "struct with delegate" test to increase coverage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.42] tests: Extend "struct with delegate" test to increase coverage
- Date: Wed, 10 Apr 2019 14:27:46 +0000 (UTC)
commit 9e0e50fad2676b7312aaf5ceec2235544492b0d1
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Mar 10 18:14:09 2019 +0100
tests: Extend "struct with delegate" test to increase coverage
tests/structs/structs.vala | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/tests/structs/structs.vala b/tests/structs/structs.vala
index ae4e6f734..dabe021d8 100644
--- a/tests/structs/structs.vala
+++ b/tests/structs/structs.vala
@@ -29,9 +29,10 @@ struct StructWithNamedCreationMethod {
delegate void Func ();
struct StructWithFunc {
- int foo;
+ public Func foo;
- public StructWithFunc (Func f) {
+ public StructWithFunc (owned Func f) {
+ foo = (owned) f;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]