MCPcopy Create free account
hub / github.com/garrytan/gstack / isFreeTestFile

Function isFreeTestFile

scripts/test-free-shards.ts:118–122  ·  view source on GitHub ↗
(relativePath: string)

Source from the content-addressed store, hash-verified

116}
117
118export function isFreeTestFile(relativePath: string): boolean {
119 const normalized = normalizeRelativePath(relativePath);
120 if (!TEST_FILE_REGEX.test(normalized)) return false;
121 return !PAID_EVAL_TESTS.some(pattern => pattern.test(normalized));
122}
123
124/**
125 * Returns the first POSIX-only pattern hit in the file, or null if Windows-safe.

Callers 2

collectFreeTestFilesFunction · 0.85

Calls 1

normalizeRelativePathFunction · 0.85

Tested by

no test coverage detected