summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2021-07-27 11:31:41 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2021-08-05 17:47:29 +0100
commit2b6c06da99611fe5821865d0635b83fb85210b67 (patch)
tree20f53838b5e3ebafdfef4db58fce800c04e20bf4 /tests
parentd324947dea03495c659df385fecc9dab1717309f (diff)
downloadgobject-introspection-2b6c06da99611fe5821865d0635b83fb85210b67.tar.gz
scanner: Warn if property annotations are mismatched
If the (set-property) and (get-property) annotations on methods do not round trip with the (setter) and (getter) annotations on the corresponding property, we want to emit a warning.
Diffstat (limited to 'tests')
-rw-r--r--tests/scanner/Regress-1.0-expected.gir10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/scanner/Regress-1.0-expected.gir b/tests/scanner/Regress-1.0-expected.gir
index 4786080e..65a6a83d 100644
--- a/tests/scanner/Regress-1.0-expected.gir
+++ b/tests/scanner/Regress-1.0-expected.gir
@@ -4286,7 +4286,9 @@ case.</doc>
</parameter>
</parameters>
</method>
- <method name="set_bare" c:identifier="regress_test_obj_set_bare">
+ <method name="set_bare"
+ c:identifier="regress_test_obj_set_bare"
+ glib:set-property="bare">
<source-position filename="regress.h" line="828"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
@@ -5656,7 +5658,8 @@ the introspection client langage.</doc>
</parameters>
</function>
<method name="get_testbool"
- c:identifier="regress_test_wi_802_1x_get_testbool">
+ c:identifier="regress_test_wi_802_1x_get_testbool"
+ glib:get-property="testbool">
<source-position filename="regress.h" line="1256"/>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
@@ -5668,7 +5671,8 @@ the introspection client langage.</doc>
</parameters>
</method>
<method name="set_testbool"
- c:identifier="regress_test_wi_802_1x_set_testbool">
+ c:identifier="regress_test_wi_802_1x_set_testbool"
+ glib:set-property="testbool">
<source-position filename="regress.h" line="1259"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>