MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / called

Function called

__tests__/java-overload-arguments.test.ts:496–499  ·  view source on GitHub ↗
(sig: string)

Source from the content-addressed store, hash-verified

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 });

Callers 1

Calls 4

mapMethod · 0.80
getNodeMethod · 0.80
getNodesByKindMethod · 0.65
getOutgoingEdgesMethod · 0.45

Tested by

no test coverage detected