about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/path-ordering.js
blob: 4bec4827d519a84d2c54f40f635a25fd8508c7d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const EXPECTED = [
    {
        query: 'hashset::insert',
        others: [
            // ensure hashset::insert comes first
            { 'path': 'std::collections::HashSet', 'name': 'insert' },
            { 'path': 'std::collections::HashSet', 'name': 'get_or_insert' },
            { 'path': 'std::collections::HashSet', 'name': 'get_or_insert_with' },
        ],
    },
    {
        query: 'hash::insert',
        others: [
            // ensure hashset/hashmap::insert come first
            { 'path': 'std::collections::HashMap', 'name': 'insert' },
            { 'path': 'std::collections::HashSet', 'name': 'insert' },
        ],
    },
];