about summary refs log tree commit diff
path: root/tests/rustdoc-js/reexport.js
blob: 0b9415dd3e48056af7e4896cc297f6424ad20017 (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
// exact-check

const EXPECTED = [
    {
        'query': 'Subscriber',
        'others': [
            { 'path': 'reexport::fmt', 'name': 'Subscriber' },
            { 'path': 'reexport', 'name': 'FmtSubscriber' },
        ],
    },
    {
        'query': 'AnotherOne',
        'others': [
            { 'path': 'reexport', 'name': 'AnotherOne' },
        ],
    },
    {
        'query': 'fn:Equivalent::equivalent',
        'others': [
            // These results must never contain `reexport::equivalent::NotEquivalent`,
            // since that path does not exist.
            { 'path': 'equivalent::Equivalent', 'name': 'equivalent' },
            { 'path': 'reexport::NotEquivalent', 'name': 'equivalent' },
        ],
    },
];