testhelp

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package testhelp holds helper functions for the testing of logr and built-in implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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