Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
scan
Function · 0.90
exitCodeFor
Function · 0.90
isPlaceholderSpan
Function · 0.90
normalizeWithMap
Function · 0.90
luhnValid
Function · 0.90
shannonEntropy
Function · 0.90
isPublicIPv4
Function · 0.90
maskPreview
Function · 0.90
redactFindingSpans
Function · 0.90
ids
Function · 0.85
test
Function · 0.70
Tested by
no test coverage detected