(name: string)
| 100 | |
| 101 | /** `calls` callees of the function `name`, as `qualifiedName`. */ |
| 102 | const calls = (name: string): string[] => { |
| 103 | const caller = cg.getNodesByKind('function').find((n: Node) => n.name === name); |
| 104 | expect(caller, name).toBeDefined(); |
| 105 | return cg.getCallees(caller!.id).filter((r) => r.edge.kind === 'calls').map((r) => r.node.qualifiedName).sort(); |
| 106 | }; |
| 107 | |
| 108 | it("a sequence's front(), back() and at(i)", () => { |
| 109 | expect(calls('Front')).toEqual(['Buffer::Flush']); |
no test coverage detected