summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-js/primitive.js
blob: ad8f6663aad12bb76e2a9893c839e323fffdc507 (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
// exact-check

const EXPECTED = [
    {
        'query': 'i32',
        'in_args': [
            { 'path': 'primitive', 'name': 'foo' },
        ],
    },
    {
        'query': 'str',
        'returned': [
            { 'path': 'primitive', 'name': 'foo' },
        ],
    },
    {
        'query': 'primitive:str',
        'returned': [
            { 'path': 'primitive', 'name': 'foo' },
        ],
    },
    {
        'query': 'struct:str',
        'returned': [],
    },
    {
        'query': 'TotoIsSomewhere',
        'others': [],
        'in_args': [],
        'returned': [],
    },
];