(lang: string, text: string)
| 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')!; |
no outgoing calls
no test coverage detected