auditlogtest

package
v0.35.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL