(sig: string)
| 494 | |
| 495 | it('reads a field the class inherits, and one read through a receiver', () => { |
| 496 | const called = (sig: string): string[] => { |
| 497 | const from = cg.getNodesByKind('method').find((n) => n.filePath === 'src/d/Db.java' && n.name === 'get' && n.signature?.includes(sig))!; |
| 498 | return cg.getOutgoingEdges(from.id).filter((e) => e.kind === 'calls').map((e) => cg.getNode(e.target)!.signature!).map((s) => s.slice(s.indexOf('('))); |
| 499 | }; |
| 500 | expect(called('Handle handle, byte[] key')).toEqual(['(long handle, byte[] key)']); |
| 501 | expect(called('(Options options, byte[] key')).toEqual(['(long handle, long options, byte[] key)']); |
| 502 | }); |
no test coverage detected