giscanner: add AnnotationParser tests
[platform/upstream/gobject-introspection.git] / tests / scanner / annotationparser / gtkdoc / gobject / giface.h.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <tests>
4
5 <test>
6   <commentblock>/**
7  * GtkdocIface:
8  *
9  * opaque instance of gtk-doc unit test interface
10  */</commentblock>
11   <docblock>
12     <identifier>
13       <name>GtkdocIface</name>
14     </identifier>
15     <description>opaque instance of gtk-doc unit test interface</description>
16   </docblock>
17 </test>
18
19 <test>
20   <commentblock>/**
21  * GtkdocIface2:
22  *
23  * opaque instance of gtk-doc unit test interface
24  */</commentblock>
25   <docblock>
26     <identifier>
27       <name>GtkdocIface2</name>
28     </identifier>
29     <description>opaque instance of gtk-doc unit test interface</description>
30   </docblock>
31 </test>
32
33 <test>
34   <commentblock>/**
35  * GtkdocIfaceInterface:
36  * @parent: this is a bug :/
37  * @test: overideable method
38  *
39  * class data of gtk-doc unit test interface
40  */</commentblock>
41   <docblock>
42     <identifier>
43       <name>GtkdocIfaceInterface</name>
44     </identifier>
45     <parameters>
46       <parameter>
47         <name>parent</name>
48         <description>this is a bug :/</description>
49       </parameter>
50       <parameter>
51         <name>test</name>
52         <description>overideable method</description>
53       </parameter>
54     </parameters>
55     <description>class data of gtk-doc unit test interface</description>
56   </docblock>
57 </test>
58
59 <test>
60   <commentblock>/**
61  * GTKDOC_IFACE_MACRO_DUMMY:
62  * @parameter_1: first arg
63  * @parameter_2: second arg
64  *
65  * This macro does nothing.
66  */</commentblock>
67   <docblock>
68     <identifier>
69       <name>GTKDOC_IFACE_MACRO_DUMMY</name>
70     </identifier>
71     <parameters>
72       <parameter>
73         <name>parameter_1</name>
74         <description>first arg</description>
75       </parameter>
76       <parameter>
77         <name>parameter_2</name>
78         <description>second arg</description>
79       </parameter>
80     </parameters>
81     <description>This macro does nothing.</description>
82   </docblock>
83 </test>
84
85 <test>
86   <commentblock>/**
87  * GTKDOC_IFACE_MACRO_SUM:
88  * @parameter_1: first arg
89  * @parameter_2: second arg
90  *
91  * This macro adds its args.
92  *
93  * Returns: the sum of @parameter_1 and @parameter_2
94  */</commentblock>
95   <docblock>
96     <identifier>
97       <name>GTKDOC_IFACE_MACRO_SUM</name>
98     </identifier>
99     <parameters>
100       <parameter>
101         <name>parameter_1</name>
102         <description>first arg</description>
103       </parameter>
104       <parameter>
105         <name>parameter_2</name>
106         <description>second arg</description>
107       </parameter>
108     </parameters>
109     <description>This macro adds its args.</description>
110     <tags>
111       <tag>
112         <name>returns</name>
113         <description>the sum of @parameter_1 and @parameter_2</description>
114       </tag>
115     </tags>
116   </docblock>
117 </test>
118
119 </tests>