No description
- Rename abbreviated locals: origLen→originalLength, hasOp→hasOperationKey,
hasStack→hasStackKey, kvStr→keyValueString, logErr→typedError (errors.go, log.go)
- Add usage example comments to all exported functions lacking them:
New, Username, SetLevel, SetRedactKeys, Debug, Info, Warn, Error, Security,
Is, As, NewError, Join, Message (AX principle 2)
- Rewrite both test files to TestFilename_Function_{Good,Bad,Ugly} convention;
all three categories mandatory per AX spec — every exported function now covered
- New test cases exercise edge paths: odd keyvals, injection with \r\n and null bytes,
redaction of numeric values and duplicate keys, AllOps on nil, Must panic value type,
LogWarn suppression at LevelError, NewCode as sentinel, rotation/output precedence
Co-Authored-By: Virgil <virgil@lethean.io>
|
||
|---|---|---|
| .core | ||
| .github/workflows | ||
| .idea | ||
| docs | ||
| .gitignore | ||
| CLAUDE.md | ||
| errors.go | ||
| errors_test.go | ||
| go.mod | ||
| go.sum | ||
| log.go | ||
| log_test.go | ||
| SECURITY_ATTACK_VECTOR_MAPPING.md | ||