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

Function targets

__tests__/rust-method-path-value.test.ts:113–113  ·  view source on GitHub ↗
(fn: string, kind: string)

Source from the content-addressed store, hash-verified

111 ].join('\n'),
112 });
113 const targets = (fn: string, kind: string) => outOf(graph, fn).filter((e) => e.startsWith(kind) && e.includes('error_message')).map((e) => e.slice(kind.length));
114 expect(targets('as_value', 'references')).toEqual(targets('as_call', 'calls'));
115 // A variant or a constant is no function: only the reads main already makes (the enum, the const).
116 expect(outOf(graph, 'as_value').filter((e) => e.includes('Wrap') || e.includes('MAX'))).toEqual(['references src/main.rs:Limits::MAX']);

Callers 1

Calls 2

mapMethod · 0.80
outOfFunction · 0.70

Tested by

no test coverage detected