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

Function targetsFrom

__tests__/rust-framework-name-scope.test.ts:67–71  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

65});
66
67const targetsFrom = (file: string) => {
68 const ids = cg.getNodesInFile(file).map((n) => n.id);
69 return cg.getOutgoingEdgesFrom(ids).filter((e) => e.kind !== 'contains')
70 .map((e) => cg.getNode(e.target)!).map((t) => `${t.filePath}:${t.qualifiedName}`);
71};
72
73describe('Rust framework name heuristics', () => {
74 it('never reach an item declared inside a function body', () => {

Calls 4

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

Tested by

no test coverage detected