Documentation
¶
Overview ¶
Package auditlogtest provides test-only helpers for resetting the audit log package state between test cases. It is in a dedicated subpackage so that the production internal/auditlog package does not export test- lifecycle functions that production code could accidentally call. Import this package only from _test.go files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Reset ¶
func Reset()
Reset clears all audit-log package state so the next Configure starts fresh. Use in t.Cleanup to isolate tests that exercise the audit log.
Forwards to internal/auditlog.ResetForTests which is exported only so this subpackage can reach it; do not call ResetForTests directly from other packages or from production code.
Types ¶
This section is empty.