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

Function isTestPath

src/search/query-utils.ts:454–462  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

452 * that contains them is telling the reader something untrue.
453 */
454export function isTestPath(filePath: string): boolean {
455 let known = TEST_PATHS.get(filePath);
456 if (known === undefined) {
457 known = readsAsTestPath(filePath);
458 if (TEST_PATHS.size >= TEST_PATHS_KEEP) TEST_PATHS.clear();
459 TEST_PATHS.set(filePath, known);
460 }
461 return known;
462}
463
464/** Resolving asks about the same paths for every reference and candidate, and the answer takes seven patterns. */
465const TEST_PATHS = new Map<string, boolean>();

Callers 15

angularComponentsFunction · 0.90
mocklessContextForMethod · 0.90
hasTestRequestPatternFunction · 0.90
isRequestHelperFunction · 0.90
testRequestEdgesFunction · 0.90
crossTierEdgesFunction · 0.90
svelteKitLinkEdgesFunction · 0.90
fromTestCodeFunction · 0.90
commandsForFunction · 0.90
readRustSideFunction · 0.90
tauriEdgesFunction · 0.90

Calls 4

readsAsTestPathFunction · 0.85
getMethod · 0.65
clearMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected