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

Function strips

__tests__/js-resolution-work.test.ts:48–49  ·  view source on GitHub ↗
(lang: string, text: string)

Source from the content-addressed store, hash-verified

46
47 /** How often a non-empty start of `text` was stripped as `lang`. */
48 const strips = (lang: string, text: string) => vi.mocked(stripCommentsForRegex).mock.calls
49 .filter(([stripped, as]) => as === lang && stripped.length > 0 && text.startsWith(stripped)).length;
50
51 const callers = (graph: CodeGraph, file: string, name: string) => {
52 const target = graph.getNodesByName(name).find((n) => n.filePath === file && n.kind === 'function')!;

Calls

no outgoing calls

Tested by

no test coverage detected