/** * Path-classification predicates. * * cognium-dev #239 C.2 — weak-crypto test-file allowlist. * * Test-file layouts vary across languages/build systems (Maven/Gradle, * Python pytest, Go, JS/TS jest+vitest, RSpec). This module owns the * zero-dependency regex-only classifier used by passes that want to * allowlist findings on test fixtures. * * Browser + Node.js compatible: no glob library, no `path` module. */ /** * Returns true if the given filepath looks like a test / spec file. * * Callers that want to allowlist crypto / secret / RNG findings on * KAT / reproducibility vectors should short-circuit their pass when * this predicate fires. * * `filepath` is expected to be the `graph.ir.meta.file` string * (repository-relative or absolute). Backslashes are normalised. * * JVM-family files (`.java` / `.kt` / `.scala` / `.groovy`) require * both a test-dir match AND a JUnit-style filename suffix * (`*Test|*Tests|*Spec|*IT|*ITCase|*TestCase`). Maven's * `src/test/java/**` layout hosts vulnerability fixtures and demo * corpora alongside real unit tests; the filename convention is the * only reliable signal. */ export declare function isTestPath(filepath: string | undefined | null): boolean; //# sourceMappingURL=path-classification.d.ts.map