MCPcopy Create free account
hub / github.com/PatrickSys/codebase-context / isTestArtifactPath

Function isTestArtifactPath

src/core/search-quality.ts:11–19  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

9}
10
11export function isTestArtifactPath(filePath: string): boolean {
12 const normalized = filePath.toLowerCase().replace(/\\/g, '/');
13 return (
14 normalized.includes('.spec.') ||
15 normalized.includes('.test.') ||
16 normalized.includes('/e2e/') ||
17 normalized.includes('/__tests__/')
18 );
19}
20
21export function assessSearchQuality(
22 query: string,

Callers 1

assessSearchQualityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected