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

Function isTestFile

src/bin/codegraph.ts:3065–3068  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

3063 // `affected` reported "no tests" for whole ecosystems while `search` and
3064 // the MCP tools counted those very files as tests.
3065 function isTestFile(filePath: string): boolean {
3066 if (customFilter) return customFilter(filePath);
3067 return isTestPath(filePath);
3068 }
3069
3070 // BFS to find all transitive dependents of changed files, filtered to test files
3071 const affectedTests = new Set<string>();

Callers 1

mainFunction · 0.70

Calls 1

isTestPathFunction · 0.90

Tested by

no test coverage detected