Documentation
¶
Overview ¶
Command testkeys prints synthetic test keys generated from the embedded registry.
With no file arguments it prints "<detector-id> <key>" for every detector, sorted by id. With file arguments it expands each file as a fixture template ({{key "openai"}}, {{key "openai.project-key"}}) to stdout. Every key carries the TOKENHOUNDTEST marker; the same --seed yields byte-identical output on every OS.
Usage: go run ./tools/testkeys [--seed N] [template-file ...]
Exit codes: 0 success, 1 a file or the registry could not be read, 2 usage error or unknown detector id.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package keygen generates synthetic test keys from registry patterns (AD-16).
|
Package keygen generates synthetic test keys from registry patterns (AD-16). |
|
Package leakcheck is the one AD-3 leak checker of the test suites: it looks for more of a generated key than its redacted form in a captured output, raw and in its JSON-escaped, URL-encoded and base64-encoded views, and reports each hit by format, file, byte offset, encoding and finding id, never by the matched text.
|
Package leakcheck is the one AD-3 leak checker of the test suites: it looks for more of a generated key than its redacted form in a captured output, raw and in its JSON-escaped, URL-encoded and base64-encoded views, and reports each hit by format, file, byte offset, encoding and finding id, never by the matched text. |