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

Function targetsFrom

__tests__/fuzzy-case-sensitivity.test.ts:30–36  ·  view source on GitHub ↗
(cg: CodeGraph, file: string)

Source from the content-addressed store, hash-verified

28}
29
30const targetsFrom = (cg: CodeGraph, file: string): string[] =>
31 cg
32 .getOutgoingEdgesFrom(cg.getNodesInFile(file).map((n) => n.id))
33 .filter((e) => e.kind !== 'contains')
34 .map((e) => cg.getNode(e.target)!)
35 .map((n) => `${n.kind}:${n.name}`)
36 .sort();
37
38describe('fuzzy matching and case', () => {
39 it('Java: an annotation or a type is not a method whose name differs only in case', async () => {

Callers 1

Calls 4

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

Tested by

no test coverage detected