[vala/0.40] 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.40] tests: Extend "struct with delegate" test to increase coverage
- Date: Tue, 9 Apr 2019 13:49:16 +0000 (UTC)
commit aa490ad81b803e7e7c051ae682dd4c239c009ae3
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]