summaryrefslogtreecommitdiff
path: root/tests/scanner/annotationparser/gi/tag_since.xml
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2013-08-13 15:01:00 +0200
committerDieter Verfaillie <dieterv@optionexplicit.be>2013-10-08 20:56:39 +0200
commit4b690b187bf8d0b7b571faaa050986b796e797a4 (patch)
tree05cfc910d4c9e276aa93255d4e4812b897dd25e3 /tests/scanner/annotationparser/gi/tag_since.xml
parent0af20939c8e2deaf1d1f06e069594d53acf65d2f (diff)
downloadgobject-introspection-4b690b187bf8d0b7b571faaa050986b796e797a4.tar.gz
giscanner: add missing tests
Diffstat (limited to 'tests/scanner/annotationparser/gi/tag_since.xml')
-rw-r--r--tests/scanner/annotationparser/gi/tag_since.xml52
1 files changed, 52 insertions, 0 deletions
diff --git a/tests/scanner/annotationparser/gi/tag_since.xml b/tests/scanner/annotationparser/gi/tag_since.xml
index 048cb4df..e8545452 100644
--- a/tests/scanner/annotationparser/gi/tag_since.xml
+++ b/tests/scanner/annotationparser/gi/tag_since.xml
@@ -27,6 +27,36 @@
<input>/**
* annotation_versioned:
*
+ * Since: (invalid)): 0.6
+ **/</input>
+ <parser>
+ <docblock>
+ <identifier>
+ <name>annotation_versioned</name>
+ </identifier>
+ <tags>
+ <tag>
+ <name>since</name>
+ </tag>
+ </tags>
+ </docblock>
+ <messages>
+ <message>4: Error: Test: unbalanced parentheses, annotations will be ignored:
+ * Since: (invalid)): 0.6
+ ^</message>
+ </messages>
+ </parser>
+ <output>/**
+ * annotation_versioned:
+ *
+ * Since:
+ */</output>
+</test>
+
+<test>
+ <input>/**
+ * annotation_versioned:
+ *
* Since: this function is available since version 0.6
**/</input>
<parser>
@@ -46,6 +76,28 @@
<test>
<input>/**
+ * annotation_versioned:
+ *
+ * Since: 0.6: this function is available since version 0.6
+ **/</input>
+ <parser>
+ <docblock>
+ <identifier>
+ <name>annotation_versioned</name>
+ </identifier>
+ <tags>
+ <tag>
+ <name>since</name>
+ <value>0.6</value>
+ <description>this function is available since version 0.6</description>
+ </tag>
+ </tags>
+ </docblock>
+ </parser>
+</test>
+
+<test>
+ <input>/**
* test_tag_not_annotatable:
*
* Tags (except Returns:) don't have annotations