MCPcopy
hub / github.com/garrytan/gstack / security.test.ts

File security.test.ts

browse/test/security.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/**
2 * Unit tests for browse/src/security.ts — pure-string operations that must
3 * behave deterministically in the compiled browse binary AND in the
4 * sidebar-agent bun process. No ML, no network, no subprocess spawning.

Callers

nothing calls this directly

Calls 13

combineVerdictFunction · 0.90
generateCanaryFunction · 0.90
injectCanaryFunction · 0.90
checkCanaryInStructureFunction · 0.90
hashPayloadFunction · 0.90
logAttemptFunction · 0.90
writeSessionStateFunction · 0.90
readSessionStateFunction · 0.90
getStatusFunction · 0.90
extractDomainFunction · 0.90
resolveBashBinaryFunction · 0.90

Tested by

no test coverage detected