(kind: string)
| 150 | assertParity('scoped-classes.h', source, 'cpp', 10); |
| 151 | const result = tryKernelExtract('scoped-classes.h', source, 'cpp')!; |
| 152 | const named = (kind: string) => result.nodes.filter((n) => n.kind === kind).map((n) => n.qualifiedName).sort(); |
| 153 | // A name written from the global scope alone has no scope to be qualified under. |
| 154 | expect(result.nodes.map((n) => n.qualifiedName).filter((q) => q.startsWith('::') || q.includes('::::'))).toEqual([]); |
| 155 | expect(named('struct')).toEqual(expect.arrayContaining(['leveldb::SkipList::Node', 'leveldb::SkipList::Node::Link', 'leveldb::Table::Rep', 'leveldb::Table::Rep2'])); |
no test coverage detected