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

const QUERY = [
    "i32",
    "str",
    "primitive:str",
    "struct:str",
    "TotoIsSomewhere",
];

const EXPECTED = [
    {
        'in_args': [
            { 'path': 'primitive', 'name': 'foo' },
        ],
    },
    {
        'returned': [
            { 'path': 'primitive', 'name': 'foo' },
        ],
    },
    {
        'returned': [
            { 'path': 'primitive', 'name': 'foo' },
        ],
    },
    {
        'returned': [],
    },
    {
        'others': [],
        'in_args': [],
        'returned': [],
    },
];