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

Function targetsFrom

__tests__/scala-chain-object.test.ts:51–57  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

49});
50
51const targetsFrom = (file: string) => {
52 const ids = cg.getNodesInFile(file).map((n) => n.id);
53 return cg.getOutgoingEdgesFrom(ids)
54 .filter((e) => e.kind === 'calls' || e.kind === 'instantiates')
55 .map((e) => cg.getNode(e.target)!.filePath)
56 .sort();
57};
58
59describe('Scala chain links', () => {
60 it('never land on an object named like the member', () => {

Callers 1

Calls 4

mapMethod · 0.80
getNodeMethod · 0.80
getNodesInFileMethod · 0.65
getOutgoingEdgesFromMethod · 0.45

Tested by

no test coverage detected