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

Function isTestScope

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

Source from the content-addressed store, hash-verified

779
780/** A qualified name that runs through a test scope — see {@link TEST_SCOPE_SEGMENTS}. */
781export function isTestScope(qualifiedName: string): boolean {
782 for (const segment of qualifiedName.split(/[.:/\\#>]+/)) {
783 if (TEST_SCOPE_SEGMENTS.has(segment.toLowerCase())) return true;
784 }
785 return false;
786}
787
788/** Code the repository carries rather than owns — see {@link VENDOR_SEGMENTS}. */
789export 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