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

Function isTestScope

src/graph/dead-code.ts:777–782  ·  view source on GitHub ↗
(qualifiedName: string)

Source from the content-addressed store, hash-verified

775
776/** A qualified name that runs through a test scope — see {@link TEST_SCOPE_SEGMENTS}. */
777export function isTestScope(qualifiedName: string): boolean {
778 for (const segment of qualifiedName.split(/[.:/\\#>]+/)) {
779 if (TEST_SCOPE_SEGMENTS.has(segment.toLowerCase())) return true;
780 }
781 return false;
782}
783
784/** Code the repository carries rather than owns — see {@link VENDOR_SEGMENTS}. */
785export function isVendoredPath(filePath: string): boolean {

Callers 3

isTestCodeFunction · 0.90
dead-code.test.tsFile · 0.90
buildDeadCodeReportFunction · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected