giscanner: add AnnotationParser tests
[platform/upstream/gobject-introspection.git] / tests / scanner / annotationparser / gtkdoc / bugs / tester.h.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <tests>
4
5 <test>
6   <commentblock>/**
7  * Bug324535:
8  * @BUG_324535_A: enum 1
9  * @BUG_324535_B: enum 2
10  * @BUG_324535_C: enum 3
11  *
12  * http://bugzilla.gnome.org/show_bug.cgi?id=324535
13  */</commentblock>
14   <docblock>
15     <identifier>
16       <name>Bug324535</name>
17     </identifier>
18     <parameters>
19       <parameter>
20         <name>BUG_324535_A</name>
21         <description>enum 1</description>
22       </parameter>
23       <parameter>
24         <name>BUG_324535_B</name>
25         <description>enum 2</description>
26       </parameter>
27       <parameter>
28         <name>BUG_324535_C</name>
29         <description>enum 3</description>
30       </parameter>
31     </parameters>
32     <description>http://bugzilla.gnome.org/show_bug.cgi?id=324535</description>
33   </docblock>
34 </test>
35
36 <test>
37   <commentblock>/**
38  * bug_481811:
39  * @x: argument
40  *
41  * http://bugzilla.gnome.org/show_bug.cgi?id=481811
42  **/</commentblock>
43   <docblock>
44     <identifier>
45       <name>bug_481811</name>
46     </identifier>
47     <parameters>
48       <parameter>
49         <name>x</name>
50         <description>argument</description>
51       </parameter>
52     </parameters>
53     <description>http://bugzilla.gnome.org/show_bug.cgi?id=481811</description>
54   </docblock>
55 </test>
56
57 <test>
58   <commentblock>/**
59  * bug_501038:
60  * @a: value
61  * @b: deprecated value
62  * @_b: scrambled deprecated value
63  *
64  * http://bugzilla.gnome.org/show_bug.cgi?id=501038
65  */</commentblock>
66   <docblock>
67     <identifier>
68       <name>bug_501038</name>
69     </identifier>
70     <parameters>
71       <parameter>
72         <name>a</name>
73         <description>value</description>
74       </parameter>
75       <parameter>
76         <name>b</name>
77         <description>deprecated value</description>
78       </parameter>
79       <parameter>
80         <name>_b</name>
81         <description>scrambled deprecated value</description>
82       </parameter>
83     </parameters>
84     <description>http://bugzilla.gnome.org/show_bug.cgi?id=501038</description>
85   </docblock>
86 </test>
87
88 <test>
89   <commentblock>/**
90  * bug_460127:
91  * @a: field
92  *
93  * http://bugzilla.gnome.org/show_bug.cgi?id=460127
94  */</commentblock>
95   <docblock>
96     <identifier>
97       <name>bug_460127</name>
98     </identifier>
99     <parameters>
100       <parameter>
101         <name>a</name>
102         <description>field</description>
103       </parameter>
104     </parameters>
105     <description>http://bugzilla.gnome.org/show_bug.cgi?id=460127</description>
106   </docblock>
107 </test>
108
109 <test>
110   <commentblock>/**
111  * bug_477532:
112  *
113  * http://bugzilla.gnome.org/show_bug.cgi?id=477532
114  */</commentblock>
115   <docblock>
116     <identifier>
117       <name>bug_477532</name>
118     </identifier>
119     <description>http://bugzilla.gnome.org/show_bug.cgi?id=477532</description>
120   </docblock>
121 </test>
122
123 <test>
124   <commentblock>/**
125  * Bug446648:
126  * @BUG_446648_FOO: field
127  *
128  * http://bugzilla.gnome.org/show_bug.cgi?id=446648
129  */</commentblock>
130   <docblock>
131     <identifier>
132       <name>Bug446648</name>
133     </identifier>
134     <parameters>
135       <parameter>
136         <name>BUG_446648_FOO</name>
137         <description>field</description>
138       </parameter>
139     </parameters>
140     <description>http://bugzilla.gnome.org/show_bug.cgi?id=446648</description>
141   </docblock>
142 </test>
143
144 <test>
145   <commentblock>/**
146  * Bug512154:
147  * @index: field
148  *
149  * http://bugzilla.gnome.org/show_bug.cgi?id=512154
150  */</commentblock>
151   <docblock>
152     <identifier>
153       <name>Bug512154</name>
154     </identifier>
155     <parameters>
156       <parameter>
157         <name>index</name>
158         <description>field</description>
159       </parameter>
160     </parameters>
161     <description>http://bugzilla.gnome.org/show_bug.cgi?id=512154</description>
162   </docblock>
163 </test>
164
165 <test>
166   <commentblock>/**
167  * bug_512155a_function_pointer_t:
168  * @arg1: param 1
169  * @arg2: param 1
170  * @arg3: param 1
171  *
172  * http://bugzilla.gnome.org/show_bug.cgi?id=512155
173  */</commentblock>
174   <docblock>
175     <identifier>
176       <name>bug_512155a_function_pointer_t</name>
177     </identifier>
178     <parameters>
179       <parameter>
180         <name>arg1</name>
181         <description>param 1</description>
182       </parameter>
183       <parameter>
184         <name>arg2</name>
185         <description>param 1</description>
186       </parameter>
187       <parameter>
188         <name>arg3</name>
189         <description>param 1</description>
190       </parameter>
191     </parameters>
192     <description>http://bugzilla.gnome.org/show_bug.cgi?id=512155</description>
193   </docblock>
194 </test>
195
196 <test>
197   <commentblock>/**
198  * bug_512155b_function_pointer_t:
199  * @arg1: param 1
200  * @arg2: param 1
201  * @arg3: param 1
202  *
203  * http://bugzilla.gnome.org/show_bug.cgi?id=512155
204  */</commentblock>
205   <docblock>
206     <identifier>
207       <name>bug_512155b_function_pointer_t</name>
208     </identifier>
209     <parameters>
210       <parameter>
211         <name>arg1</name>
212         <description>param 1</description>
213       </parameter>
214       <parameter>
215         <name>arg2</name>
216         <description>param 1</description>
217       </parameter>
218       <parameter>
219         <name>arg3</name>
220         <description>param 1</description>
221       </parameter>
222     </parameters>
223     <description>http://bugzilla.gnome.org/show_bug.cgi?id=512155</description>
224   </docblock>
225 </test>
226
227 <test>
228   <commentblock>/**
229  * bug_512155c_function_pointer_t:
230  * @arg1: param 1
231  * @arg2: param 1
232  * @arg3: param 1
233  *
234  * http://bugzilla.gnome.org/show_bug.cgi?id=512155
235  */</commentblock>
236   <docblock>
237     <identifier>
238       <name>bug_512155c_function_pointer_t</name>
239     </identifier>
240     <parameters>
241       <parameter>
242         <name>arg1</name>
243         <description>param 1</description>
244       </parameter>
245       <parameter>
246         <name>arg2</name>
247         <description>param 1</description>
248       </parameter>
249       <parameter>
250         <name>arg3</name>
251         <description>param 1</description>
252       </parameter>
253     </parameters>
254     <description>http://bugzilla.gnome.org/show_bug.cgi?id=512155</description>
255   </docblock>
256 </test>
257
258 <test>
259   <commentblock><![CDATA[/**
260  * BUG_530758:
261  *
262  * {{![CDATA[http://bugzilla.gnome.org/show_bug.cgi?id=530758#c1]]!}}
263  *
264  * <ulink url="http://bugzilla.gnome.org/show_bug.cgi?id=530758#c1">Test</ulink>
265  */]]></commentblock>
266   <docblock>
267     <identifier>
268       <name>BUG_530758</name>
269     </identifier>
270     <description><![CDATA[{{![CDATA[http://bugzilla.gnome.org/show_bug.cgi?id=530758#c1]]!}}
271
272 <ulink url="http://bugzilla.gnome.org/show_bug.cgi?id=530758#c1">Test</ulink>]]></description>
273   </docblock>
274 </test>
275
276 <test>
277   <commentblock>/**
278  * bug_532395a:
279  * @number: a number
280  *
281  * http://bugzilla.gnome.org/show_bug.cgi?id=532395
282  *
283  * Returns: number
284  */</commentblock>
285   <docblock>
286     <identifier>
287       <name>bug_532395a</name>
288     </identifier>
289     <parameters>
290       <parameter>
291         <name>number</name>
292         <description>a number</description>
293       </parameter>
294     </parameters>
295     <description>http://bugzilla.gnome.org/show_bug.cgi?id=532395</description>
296     <tags>
297       <tag>
298         <name>returns</name>
299         <description>number</description>
300       </tag>
301     </tags>
302   </docblock>
303 </test>
304
305 <test>
306   <commentblock>/**
307  * bug_532395b:
308  *
309  * http://bugzilla.gnome.org/show_bug.cgi?id=532395
310  */</commentblock>
311   <docblock>
312     <identifier>
313       <name>bug_532395b</name>
314     </identifier>
315     <description>http://bugzilla.gnome.org/show_bug.cgi?id=532395</description>
316   </docblock>
317 </test>
318
319 <test>
320   <commentblock>/**
321  * bug_544172:
322  * @self: object pointer.
323  *
324  * http://bugzilla.gnome.org/show_bug.cgi?id=544172
325  *
326  * Returns: result or %NULL.
327  */</commentblock>
328   <docblock>
329     <identifier>
330       <name>bug_544172</name>
331     </identifier>
332     <parameters>
333       <parameter>
334         <name>self</name>
335         <description>object pointer.</description>
336       </parameter>
337     </parameters>
338     <description>http://bugzilla.gnome.org/show_bug.cgi?id=544172</description>
339     <tags>
340       <tag>
341         <name>returns</name>
342         <description>result or %NULL.</description>
343       </tag>
344     </tags>
345   </docblock>
346 </test>
347
348 <test>
349   <commentblock>/**
350  * bug_554833:
351  * @i: value;
352  *
353  * http://bugzilla.gnome.org/show_bug.cgi?id=554833
354  */</commentblock>
355   <docblock>
356     <identifier>
357       <name>bug_554833</name>
358     </identifier>
359     <parameters>
360       <parameter>
361         <name>i</name>
362         <description>value;</description>
363       </parameter>
364     </parameters>
365     <description>http://bugzilla.gnome.org/show_bug.cgi?id=554833</description>
366   </docblock>
367 </test>
368
369 <test>
370   <commentblock>/**
371  * bug_554833_new:
372  *
373  * http://bugzilla.gnome.org/show_bug.cgi?id=554833
374  *
375  * Returns: result
376  */</commentblock>
377   <docblock>
378     <identifier>
379       <name>bug_554833_new</name>
380     </identifier>
381     <description>http://bugzilla.gnome.org/show_bug.cgi?id=554833</description>
382     <tags>
383       <tag>
384         <name>returns</name>
385         <description>result</description>
386       </tag>
387     </tags>
388   </docblock>
389 </test>
390
391 <test>
392   <commentblock>/**
393  * Bug165425a:
394  * @i: data as int
395  * @f: data as float
396  *
397  * http://bugzilla.gnome.org/show_bug.cgi?id=165425
398  */</commentblock>
399   <docblock>
400     <identifier>
401       <name>Bug165425a</name>
402     </identifier>
403     <parameters>
404       <parameter>
405         <name>i</name>
406         <description>data as int</description>
407       </parameter>
408       <parameter>
409         <name>f</name>
410         <description>data as float</description>
411       </parameter>
412     </parameters>
413     <description>http://bugzilla.gnome.org/show_bug.cgi?id=165425</description>
414   </docblock>
415 </test>
416
417 <test>
418   <commentblock>/**
419  * Bug165425b:
420  * @i: data as int
421  * @f: data as float
422  *
423  * http://bugzilla.gnome.org/show_bug.cgi?id=165425
424  */</commentblock>
425   <docblock>
426     <identifier>
427       <name>Bug165425b</name>
428     </identifier>
429     <parameters>
430       <parameter>
431         <name>i</name>
432         <description>data as int</description>
433       </parameter>
434       <parameter>
435         <name>f</name>
436         <description>data as float</description>
437       </parameter>
438     </parameters>
439     <description>http://bugzilla.gnome.org/show_bug.cgi?id=165425</description>
440   </docblock>
441 </test>
442
443 <test>
444   <commentblock>/**
445  * Bug642998:
446  * @red: red color intensity, from 0–255
447  * @green: green color intensity, from 0–255
448  * @blue: blue color intensity, from 0–255
449  *
450  * https://bugzilla.gnome.org/show_bug.cgi?id=642998
451  */</commentblock>
452   <docblock>
453     <identifier>
454       <name>Bug642998</name>
455     </identifier>
456     <parameters>
457       <parameter>
458         <name>red</name>
459         <description>red color intensity, from 0–255</description>
460       </parameter>
461       <parameter>
462         <name>green</name>
463         <description>green color intensity, from 0–255</description>
464       </parameter>
465       <parameter>
466         <name>blue</name>
467         <description>blue color intensity, from 0–255</description>
468       </parameter>
469     </parameters>
470     <description>https://bugzilla.gnome.org/show_bug.cgi?id=642998</description>
471   </docblock>
472 </test>
473
474 <test>
475   <commentblock>/**
476  * Bug644291:
477  * @BUG_644291_START: foo
478  * @BUG_644291_TEXT: bar
479  * @BUG_644291_END: milk
480  * @BUG_644291_ATTRIBUTE: comes
481  * @BUG_644291_XMLNS: from
482  * @BUG_644291_ASSIGN_TO: cows
483  *
484  * https://bugzilla.gnome.org/show_bug.cgi?id=644291
485  */</commentblock>
486   <docblock>
487     <identifier>
488       <name>Bug644291</name>
489     </identifier>
490     <parameters>
491       <parameter>
492         <name>BUG_644291_START</name>
493         <description>foo</description>
494       </parameter>
495       <parameter>
496         <name>BUG_644291_TEXT</name>
497         <description>bar</description>
498       </parameter>
499       <parameter>
500         <name>BUG_644291_END</name>
501         <description>milk</description>
502       </parameter>
503       <parameter>
504         <name>BUG_644291_ATTRIBUTE</name>
505         <description>comes</description>
506       </parameter>
507       <parameter>
508         <name>BUG_644291_XMLNS</name>
509         <description>from</description>
510       </parameter>
511       <parameter>
512         <name>BUG_644291_ASSIGN_TO</name>
513         <description>cows</description>
514       </parameter>
515     </parameters>
516     <description>https://bugzilla.gnome.org/show_bug.cgi?id=644291</description>
517   </docblock>
518 </test>
519
520 <test>
521   <commentblock>/**
522  * BUG_000000_VA2:
523  * @name: a name
524  * @...: A printf-style message to output
525  *
526  * Outputs a message.
527  */</commentblock>
528   <docblock>
529     <identifier>
530       <name>BUG_000000_VA2</name>
531     </identifier>
532     <parameters>
533       <parameter>
534         <name>name</name>
535         <description>a name</description>
536       </parameter>
537       <parameter>
538         <name>...</name>
539         <description>A printf-style message to output</description>
540       </parameter>
541     </parameters>
542     <description>Outputs a message.</description>
543   </docblock>
544 </test>
545
546 <test>
547   <commentblock>/**
548  * BUG_000000_VA3:
549  * @name: a name
550  * @...: A printf-style message to output
551  *
552  * Outputs a message.
553  */</commentblock>
554   <docblock>
555     <identifier>
556       <name>BUG_000000_VA3</name>
557     </identifier>
558     <parameters>
559       <parameter>
560         <name>name</name>
561         <description>a name</description>
562       </parameter>
563       <parameter>
564         <name>...</name>
565         <description>A printf-style message to output</description>
566       </parameter>
567     </parameters>
568     <description>Outputs a message.</description>
569   </docblock>
570 </test>
571
572 <test>
573   <commentblock>/**
574  * Bug000000Scope:
575  *
576  * Opaque structure.
577  * "warning: Field descriptions for Bug000000Scope are missing in source code comment block."
578  * but not if we remove the blank line before "int b";
579  */</commentblock>
580   <docblock>
581     <identifier>
582       <name>Bug000000Scope</name>
583     </identifier>
584     <description>Opaque structure.
585 "warning: Field descriptions for Bug000000Scope are missing in source code comment block."
586 but not if we remove the blank line before "int b";</description>
587   </docblock>
588 </test>
589
590 <test>
591   <commentblock>/**
592  * gst_play_marshal_BUFFER__BOXED:
593  * @closure: test
594  * @return_value: test
595  * @marshal_data: test
596  *
597  * test.
598  */</commentblock>
599   <docblock>
600     <identifier>
601       <name>gst_play_marshal_BUFFER__BOXED</name>
602     </identifier>
603     <parameters>
604       <parameter>
605         <name>closure</name>
606         <description>test</description>
607       </parameter>
608       <parameter>
609         <name>return_value</name>
610         <description>test</description>
611       </parameter>
612       <parameter>
613         <name>marshal_data</name>
614         <description>test</description>
615       </parameter>
616     </parameters>
617     <description>test.</description>
618   </docblock>
619 </test>
620
621 <test>
622   <commentblock>/**
623  * BUG_656773a:
624  *
625  * https://bugzilla.gnome.org/show_bug.cgi?id=656773
626  */</commentblock>
627   <docblock>
628     <identifier>
629       <name>BUG_656773a</name>
630     </identifier>
631     <description>https://bugzilla.gnome.org/show_bug.cgi?id=656773</description>
632   </docblock>
633 </test>
634
635 <test>
636   <commentblock>/**
637  * BUG_656773b:
638  *
639  * https://bugzilla.gnome.org/show_bug.cgi?id=656773
640  */</commentblock>
641   <docblock>
642     <identifier>
643       <name>BUG_656773b</name>
644     </identifier>
645     <description>https://bugzilla.gnome.org/show_bug.cgi?id=656773</description>
646   </docblock>
647 </test>
648
649 <test>
650   <commentblock>/**
651  * BUG_656773c:
652  *
653  * https://bugzilla.gnome.org/show_bug.cgi?id=656773
654  */</commentblock>
655   <docblock>
656     <identifier>
657       <name>BUG_656773c</name>
658     </identifier>
659     <description>https://bugzilla.gnome.org/show_bug.cgi?id=656773</description>
660   </docblock>
661 </test>
662
663 <test>
664   <commentblock>/**
665  * BUG_656946:
666  *
667  * https://bugzilla.gnome.org/show_bug.cgi?id=656946
668  */</commentblock>
669   <docblock>
670     <identifier>
671       <name>BUG_656946</name>
672     </identifier>
673     <description>https://bugzilla.gnome.org/show_bug.cgi?id=656946</description>
674   </docblock>
675 </test>
676
677 </tests>