MCPcopy
hub / github.com/garrytan/gstack / redact-engine.test.ts

File redact-engine.test.ts

test/redact-engine.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/**
2 * Unit tests for lib/redact-engine.ts + lib/redact-patterns.ts.
3 *
4 * One positive test per pattern, plus FP-filters, validators (Luhn/entropy/

Callers

nothing calls this directly

Calls 11

scanFunction · 0.90
exitCodeForFunction · 0.90
isPlaceholderSpanFunction · 0.90
normalizeWithMapFunction · 0.90
luhnValidFunction · 0.90
shannonEntropyFunction · 0.90
isPublicIPv4Function · 0.90
maskPreviewFunction · 0.90
redactFindingSpansFunction · 0.90
idsFunction · 0.85
testFunction · 0.70

Tested by

no test coverage detected