summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc-js/raw-pointer.js
blob: 140b955ea713acfae220d54bbeed6e7ebcce8634 (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
// ignore-order

const QUERY = [
    'Aaaaaaa -> i32',
    'Aaaaaaa -> Aaaaaaa',
    'Aaaaaaa -> usize',
    '-> Aaaaaaa',
    'Aaaaaaa',
];

const EXPECTED = [
    {
        // Aaaaaaa -> i32
        'others': [
            { 'path': 'raw_pointer::Ccccccc', 'name': 'eeeeeee' },
        ],
    },
    {
        // Aaaaaaa -> Aaaaaaa
        'others': [
            { 'path': 'raw_pointer::Ccccccc', 'name': 'fffffff' },
            { 'path': 'raw_pointer::Ccccccc', 'name': 'ggggggg' },
        ],
    },
    {
        // Aaaaaaa -> usize
        'others': [],
    },
    {
        // -> Aaaaaaa
        'others': [
            { 'path': 'raw_pointer::Ccccccc', 'name': 'fffffff' },
            { 'path': 'raw_pointer::Ccccccc', 'name': 'ggggggg' },
            { 'path': 'raw_pointer::Ccccccc', 'name': 'ddddddd' },
            { 'path': 'raw_pointer', 'name': 'bbbbbbb' },
        ],
    },
    {
        // Aaaaaaa
        'others': [
            { 'path': 'raw_pointer', 'name': 'Aaaaaaa' },
        ],
        'in_args': [
            { 'path': 'raw_pointer::Ccccccc', 'name': 'fffffff' },
            { 'path': 'raw_pointer::Ccccccc', 'name': 'ggggggg' },
            { 'path': 'raw_pointer::Ccccccc', 'name': 'eeeeeee' },
        ],
        'returned': [
            { 'path': 'raw_pointer::Ccccccc', 'name': 'fffffff' },
            { 'path': 'raw_pointer::Ccccccc', 'name': 'ggggggg' },
            { 'path': 'raw_pointer::Ccccccc', 'name': 'ddddddd' },
            { 'path': 'raw_pointer', 'name': 'bbbbbbb' },
        ],
    },
];