...

Package testing

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

Overview ▾

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

Index ▾

Package files

test.go

Variables

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

var NewTestLogger = testr.New

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

var NewTestLoggerWithOptions = testr.NewWithOptions

type Options

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

type Options = testr.Options

type Underlier

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

type Underlier = testr.Underlier