package testing

import "github.com/go-logr/logr/testing"

Package testing provides support for using logr in tests. Deprecated. See github.com/go-logr/logr/testr instead.

Index

Variables

var NewTestLogger = testr.New

NewTestLogger returns a logr.Logger that prints through a testing.T object. Deprecated. See github.com/go-logr/logr/testr.New instead.

var NewTestLoggerWithOptions = testr.NewWithOptions

NewTestLoggerWithOptions returns a logr.Logger that prints through a testing.T object. Deprecated. See github.com/go-logr/logr/testr.NewWithOptions instead.

Types

type Options

type Options = testr.Options

Options carries parameters which influence the way logs are generated. Deprecated. See github.com/go-logr/logr/testr.Options instead.

type Underlier

type Underlier = testr.Underlier

Underlier exposes access to the underlying testing.T instance. Deprecated. See github.com/go-logr/logr/testr.Underlier instead.

Source Files

test.go

Version
v1.4.2 (latest)
Published
May 20, 2024
Platform
linux/amd64
Imports
1 packages
Last checked
5 days ago

Tools for package owners.