summaryrefslogtreecommitdiff
path: root/tests/scanner/annotationparser/gtkdoc/empty/tester.c.xml
blob: 830f57008edb52fda5921f7d8ab53eaebb7bbcde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?xml version="1.0" encoding="UTF-8"?>

<tests xmlns="http://schemas.gnome.org/gobject-introspection/2013/test">

<test>
  <input><![CDATA[/**
 * SECTION:tester
 * @short_description: module for gtk-doc unit test
 *
 * This file contains non-sense code for the sole purpose of testing the docs.
 *
 * As described in http://bugzilla.gnome.org/show_bug.cgi?id=457077 it
 * returns nothing.
 */]]></input>
  <parser>
    <docblock>
      <identifier>
        <name>SECTION:tester</name>
      </identifier>
      <parameters>
        <parameter>
          <name>short_description</name>
          <description>module for gtk-doc unit test</description>
        </parameter>
      </parameters>
      <description><![CDATA[This file contains non-sense code for the sole purpose of testing the docs.

As described in http://bugzilla.gnome.org/show_bug.cgi?id=457077 it
returns nothing.]]></description>
    </docblock>
  </parser>
  <output><![CDATA[/**
 * SECTION:tester
 * @short_description: module for gtk-doc unit test
 *
 * This file contains non-sense code for the sole purpose of testing the docs.
 *
 * As described in http://bugzilla.gnome.org/show_bug.cgi?id=457077 it
 * returns nothing.
 */]]></output>
</test>

<test>
  <input>/**
 * test:
 * @a: arg
 *
 * lonely function
 */</input>
  <parser>
    <docblock>
      <identifier>
        <name>test</name>
      </identifier>
      <parameters>
        <parameter>
          <name>a</name>
          <description>arg</description>
        </parameter>
      </parameters>
      <description>lonely function</description>
    </docblock>
  </parser>
  <output>/**
 * test:
 * @a: arg
 *
 * lonely function
 */</output>
</test>

<test>
  <input>/**
 * GtkDocTestIf:
 *
 * test object
 */</input>
  <parser>
    <docblock>
      <identifier>
        <name>GtkDocTestIf</name>
      </identifier>
      <description>test object</description>
    </docblock>
  </parser>
  <output>/**
 * GtkDocTestIf:
 *
 * test object
 */</output>
</test>

<test>
  <input>/**
 * GtkDocTestIfInterface:
 * @parent: parent interface type.
 *
 * test interface
 */</input>
  <parser>
    <docblock>
      <identifier>
        <name>GtkDocTestIfInterface</name>
      </identifier>
      <parameters>
        <parameter>
          <name>parent</name>
          <description>parent interface type.</description>
        </parameter>
      </parameters>
      <description>test interface</description>
    </docblock>
  </parser>
  <output>/**
 * GtkDocTestIfInterface:
 * @parent: parent interface type.
 *
 * test interface
 */</output>
</test>

</tests>