summaryrefslogtreecommitdiff
path: root/tests/scanner/annotationparser/gi/tag.xml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scanner/annotationparser/gi/tag.xml')
-rw-r--r--tests/scanner/annotationparser/gi/tag.xml29
1 files changed, 17 insertions, 12 deletions
diff --git a/tests/scanner/annotationparser/gi/tag.xml b/tests/scanner/annotationparser/gi/tag.xml
index 8480d4b4..a89b3ad8 100644
--- a/tests/scanner/annotationparser/gi/tag.xml
+++ b/tests/scanner/annotationparser/gi/tag.xml
@@ -8,7 +8,7 @@
*
* Forgotten colon below will result in a warning.
*
- * Returns: (allow-none) return value
+ * Returns: (transfer none) return value
**/</input>
<parser>
<docblock>
@@ -21,7 +21,12 @@
<name>returns</name>
<annotations>
<annotation>
- <name>allow-none</name>
+ <name>transfer</name>
+ <options>
+ <option>
+ <name>none</name>
+ </option>
+ </options>
</annotation>
</annotations>
<description>return value</description>
@@ -29,9 +34,9 @@
</tags>
</docblock>
<messages>
- <message>6: Warning: Test: missing ":" at column 25:
- * Returns: (allow-none) return value
- ^</message>
+ <message>6: Warning: Test: missing ":" at column 28:
+ * Returns: (transfer none) return value
+ ^</message>
</messages>
</parser>
<output>/**
@@ -39,7 +44,7 @@
*
* Forgotten colon below will result in a warning.
*
- * Returns: (allow-none): return value
+ * Returns: (transfer none): return value
*/</output>
</test>
@@ -171,7 +176,7 @@ Moo: anything</description>
*
* Annotations spanning multiple lines are not valid
*
- * Returns: (allow-none)
+ * Returns: (skip)
* (transfer full): something
**/</input>
<parser>
@@ -185,7 +190,7 @@ Moo: anything</description>
<name>returns</name>
<annotations>
<annotation>
- <name>allow-none</name>
+ <name>skip</name>
</annotation>
</annotations>
<description>
@@ -204,7 +209,7 @@ Moo: anything</description>
*
* Annotations spanning multiple lines are not valid
*
- * Returns: (allow-none):
+ * Returns: (skip):
* (transfer full): something
*/</output>
</test>
@@ -215,7 +220,7 @@ Moo: anything</description>
*
* Annotations spanning multiple lines are not valid
*
- * Returns: (allow-none): Returns tag having a second line which looks
+ * Returns: (skip): Returns tag having a second line which looks
* (like an annotation), but isn't. This should not result in a warning.
**/</input>
<parser>
@@ -229,7 +234,7 @@ Moo: anything</description>
<name>returns</name>
<annotations>
<annotation>
- <name>allow-none</name>
+ <name>skip</name>
</annotation>
</annotations>
<description>Returns tag having a second line which looks
@@ -243,7 +248,7 @@ Moo: anything</description>
*
* Annotations spanning multiple lines are not valid
*
- * Returns: (allow-none): Returns tag having a second line which looks
+ * Returns: (skip): Returns tag having a second line which looks
* (like an annotation), but isn't. This should not result in a warning.
*/</output>
</test>