Skip to content

Commit 72d8a61

Browse files
authored
Merge pull request #13 from Cliper27/add_tests
add tests
2 parents 25e0d9e + 6aad113 commit 72d8a61

1 file changed

Lines changed: 118 additions & 0 deletions

File tree

test_data/fqns.json

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,5 +110,123 @@
110110
"constant": false,
111111
"volatile": false
112112
}
113+
},
114+
{
115+
"fqn": "const mytype1::type< template > one::two::three<mytemplate>(const four &)",
116+
"tokens": [
117+
{"type_": "MEMBER", "value": "const"},
118+
{"type_": "WHITESPACE", "value": " "},
119+
{"type_": "MEMBER", "value": "mytype1"},
120+
{"type_": "SCOPE", "value": "::"},
121+
{"type_": "MEMBER", "value": "type"},
122+
{"type_": "TEMPLATE_START", "value": "<"},
123+
{"type_": "WHITESPACE", "value": " "},
124+
{"type_": "MEMBER", "value": "template"},
125+
{"type_": "WHITESPACE", "value": " "},
126+
{"type_": "TEMPLATE_END", "value": ">"},
127+
{"type_": "WHITESPACE", "value": " "},
128+
{"type_": "MEMBER", "value": "one"},
129+
{"type_": "SCOPE", "value": "::"},
130+
{"type_": "MEMBER", "value": "two"},
131+
{"type_": "SCOPE", "value": "::"},
132+
{"type_": "MEMBER", "value": "three"},
133+
{"type_": "TEMPLATE_START", "value": "<"},
134+
{"type_": "MEMBER", "value": "mytemplate"},
135+
{"type_": "TEMPLATE_END", "value": ">"},
136+
{"type_": "PARENTHESIS_START", "value": "("},
137+
{"type_": "MEMBER", "value": "const"},
138+
{"type_": "WHITESPACE", "value": " "},
139+
{"type_": "MEMBER", "value": "four"},
140+
{"type_": "WHITESPACE", "value": " "},
141+
{"type_": "REFERENCE", "value": "&"},
142+
{"type_": "PARENTHESIS_END", "value": ")"}
143+
],
144+
"parser": {
145+
"name": "three",
146+
"full_name": "const mytype1::type< template > one::two::three<mytemplate>(const four &)",
147+
"return_type": "const mytype1::type< template >",
148+
"args": ["const four &"],
149+
"scopes": [
150+
{"name": "one", "template": null},
151+
{"name": "two", "template": null}
152+
],
153+
"template": "<mytemplate>",
154+
"constant": false,
155+
"volatile": false
156+
}
157+
},
158+
{
159+
"fqn": "one::two::operator<< ()",
160+
"tokens": [
161+
{"type_": "MEMBER", "value": "one"},
162+
{"type_": "SCOPE", "value": "::"},
163+
{"type_": "MEMBER", "value": "two"},
164+
{"type_": "SCOPE", "value": "::"},
165+
{"type_": "OPERATOR", "value": "operator<<"},
166+
{"type_": "WHITESPACE", "value": " "},
167+
{"type_": "PARENTHESIS_START", "value": "("},
168+
{"type_": "PARENTHESIS_END", "value": ")"}
169+
],
170+
"parser": {
171+
"name": "operator<<",
172+
"full_name": "one::two::operator<< ()",
173+
"return_type": null,
174+
"args": null,
175+
"scopes": [
176+
{"name": "one", "template": null},
177+
{"name": "two", "template": null}
178+
],
179+
"template": null,
180+
"constant": false,
181+
"volatile": false
182+
}
183+
},
184+
{
185+
"fqn": "one::two::operator>=()",
186+
"tokens": [
187+
{"type_": "MEMBER", "value": "one"},
188+
{"type_": "SCOPE", "value": "::"},
189+
{"type_": "MEMBER", "value": "two"},
190+
{"type_": "SCOPE", "value": "::"},
191+
{"type_": "OPERATOR", "value": "operator>="},
192+
{"type_": "PARENTHESIS_START", "value": "("},
193+
{"type_": "PARENTHESIS_END", "value": ")"}
194+
],
195+
"parser": {
196+
"name": "operator>=",
197+
"full_name": "one::two::operator>=()",
198+
"return_type": null,
199+
"args": null,
200+
"scopes": [
201+
{"name": "one", "template": null},
202+
{"name": "two", "template": null}
203+
],
204+
"template": null,
205+
"constant": false,
206+
"volatile": false
207+
}
208+
},
209+
{
210+
"fqn": "one::two::operator>=",
211+
"tokens": [
212+
{"type_": "MEMBER", "value": "one"},
213+
{"type_": "SCOPE", "value": "::"},
214+
{"type_": "MEMBER", "value": "two"},
215+
{"type_": "SCOPE", "value": "::"},
216+
{"type_": "OPERATOR", "value": "operator>="}
217+
],
218+
"parser": {
219+
"name": "operator>=",
220+
"full_name": "one::two::operator>=",
221+
"return_type": null,
222+
"args": null,
223+
"scopes": [
224+
{"name": "one", "template": null},
225+
{"name": "two", "template": null}
226+
],
227+
"template": null,
228+
"constant": false,
229+
"volatile": false
230+
}
113231
}
114232
]

0 commit comments

Comments
 (0)