package testhelp
import "github.com/go-logr/logr/internal/testhelp"
Package testhelp holds helper functions for the testing of logr and built-in implementations.
Index ¶
Functions ¶
func RunSlogTests ¶
func RunSlogTests(t *testing.T, createHandler func(buffer *bytes.Buffer) slog.Handler, exceptions ...string)
RunSlogTests runs slogtest.TestHandler on a given slog.Handler, which is expected to emit JSON into the provided buffer.
Source Files ¶
- Version
- v1.4.2 (latest)
- Published
- May 20, 2024
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 5 days ago –
Tools for package owners.