giscanner: add AnnotationParser tests
[platform/upstream/gobject-introspection.git] / tests / scanner / annotationparser / gtkdoc / gobject / gobject.h.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <tests>
4
5 <test>
6   <commentblock>/**
7  * GtkdocObject:
8  *
9  * instance data of gtk-doc unit test class
10  */</commentblock>
11   <docblock>
12     <identifier>
13       <name>GtkdocObject</name>
14     </identifier>
15     <description>instance data of gtk-doc unit test class</description>
16   </docblock>
17 </test>
18
19 <test>
20   <commentblock>/**
21  * GtkdocObjectClass:
22  * @parent: this is a bug :/
23  * @test: overideable method
24  * @ping: can be used before calling the @test() function
25  * @foo_bar: lets you refine your frobnicator
26  *
27  * class data of gtk-doc unit test class
28  */</commentblock>
29   <docblock>
30     <identifier>
31       <name>GtkdocObjectClass</name>
32     </identifier>
33     <parameters>
34       <parameter>
35         <name>parent</name>
36         <description>this is a bug :/</description>
37       </parameter>
38       <parameter>
39         <name>test</name>
40         <description>overideable method</description>
41       </parameter>
42       <parameter>
43         <name>ping</name>
44         <description>can be used before calling the @test() function</description>
45       </parameter>
46       <parameter>
47         <name>foo_bar</name>
48         <description>lets you refine your frobnicator</description>
49       </parameter>
50     </parameters>
51     <description>class data of gtk-doc unit test class</description>
52   </docblock>
53 </test>
54
55 <test>
56   <commentblock>/**
57  * GtkdocObject2:
58  *
59  * instance data of gtk-doc unit test class
60  */</commentblock>
61   <docblock>
62     <identifier>
63       <name>GtkdocObject2</name>
64     </identifier>
65     <description>instance data of gtk-doc unit test class</description>
66   </docblock>
67 </test>
68
69 <test>
70   <commentblock>/**
71  * GtkdocObject2Class:
72  * @parent: this is a bug :/
73  *
74  * class data of gtk-doc unit test class
75  */</commentblock>
76   <docblock>
77     <identifier>
78       <name>GtkdocObject2Class</name>
79     </identifier>
80     <parameters>
81       <parameter>
82         <name>parent</name>
83         <description>this is a bug :/</description>
84       </parameter>
85     </parameters>
86     <description>class data of gtk-doc unit test class</description>
87   </docblock>
88 </test>
89
90 <test>
91   <commentblock>/**
92  * GTKDOC_OBJECT_MACRO_DUMMY:
93  * @parameter_1: first arg
94  * @parameter_2: second arg
95  *
96  * This macro does nothing.
97  *
98  * Since: 0.1
99  */</commentblock>
100   <docblock>
101     <identifier>
102       <name>GTKDOC_OBJECT_MACRO_DUMMY</name>
103     </identifier>
104     <parameters>
105       <parameter>
106         <name>parameter_1</name>
107         <description>first arg</description>
108       </parameter>
109       <parameter>
110         <name>parameter_2</name>
111         <description>second arg</description>
112       </parameter>
113     </parameters>
114     <description>This macro does nothing.</description>
115     <tags>
116       <tag>
117         <name>since</name>
118         <description>0.1</description>
119       </tag>
120     </tags>
121   </docblock>
122 </test>
123
124 <test>
125   <commentblock>/**
126  * GTKDOC_OBJECT_MACRO_SUM:
127  * @parameter_1: first arg
128  * @parameter_2: second arg
129  *
130  * This macro adds its args.
131  *
132  * Returns: the sum of @parameter_1 and @parameter_2
133  */</commentblock>
134   <docblock>
135     <identifier>
136       <name>GTKDOC_OBJECT_MACRO_SUM</name>
137     </identifier>
138     <parameters>
139       <parameter>
140         <name>parameter_1</name>
141         <description>first arg</description>
142       </parameter>
143       <parameter>
144         <name>parameter_2</name>
145         <description>second arg</description>
146       </parameter>
147     </parameters>
148     <description>This macro adds its args.</description>
149     <tags>
150       <tag>
151         <name>returns</name>
152         <description>the sum of @parameter_1 and @parameter_2</description>
153       </tag>
154     </tags>
155   </docblock>
156 </test>
157
158 </tests>