(qualifiedName: string, file: string)
| 504 | |
| 505 | it('shows the real ancestors in the type hierarchy', () => { |
| 506 | const ancestors = (qualifiedName: string, file: string): string[] => |
| 507 | (buildTypeHierarchy(cg, node(qualifiedName, file))?.ancestors ?? []).map((a) => `${a.relation} ${a.node.qualifiedName} (${a.node.filePath})`); |
| 508 | expect(ancestors('google::protobuf::DynamicMessage', 'src/google/protobuf/dynamic_message.cc')).toEqual([ |
| 509 | 'extends google::protobuf::Message (src/google/protobuf/message.h)', |
| 510 | ]); |
no test coverage detected