]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-js-std/parser-filter.js
Add parser tests
[rust.git] / src / test / rustdoc-js-std / parser-filter.js
1 const QUERY = ['fn:foo', 'enum : foo', 'macro<f>:foo'];
2
3 const PARSED = [
4     {
5         args: [],
6         elemName: null,
7         elems: [{
8             name: "foo",
9             fullPath: ["foo"],
10             pathWithoutLast: [],
11             pathLast: "foo",
12             generics: [],
13         }],
14         foundElems: 1,
15         id: "fn:foo",
16         nameSplit: null,
17         original: "fn:foo",
18         returned: [],
19         typeFilter: 5,
20         val: "fn:foo",
21         error: null,
22     },
23     {
24         args: [],
25         elemName: null,
26         elems: [{
27             name: "foo",
28             fullPath: ["foo"],
29             pathWithoutLast: [],
30             pathLast: "foo",
31             generics: [],
32         }],
33         foundElems: 1,
34         id: "enum : foo",
35         nameSplit: null,
36         original: "enum : foo",
37         returned: [],
38         typeFilter: 4,
39         val: "enum : foo",
40         error: null,
41     },
42     {
43         args: [],
44         elemName: null,
45         elems: [{
46             name: "foo",
47             fullPath: ["foo"],
48             pathWithoutLast: [],
49             pathLast: "foo",
50             generics: [],
51         }],
52         foundElems: 1,
53         id: "macro<f>:foo",
54         nameSplit: null,
55         original: "macro<f>:foo",
56         returned: [],
57         typeFilter: 14,
58         val: "macro<f>:foo",
59         error: null,
60     },
61 ];