auditlogtest

package
v0.73.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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