testing

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2021 License: Apache-2.0 Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NullLogger deprecated

type NullLogger = logr.DiscardLogger

NullLogger is a logr.Logger that does nothing.

Deprecated: NullLogger is idenitcal to logr.DiscardLogger. It is retained for backwards compatibility, but new users should use logr.DiscardLogger instead.

type TestLogger

type TestLogger struct {
	T *testing.T
}

TestLogger is a logr.Logger that prints through a testing.T object. Only error logs will have any effect.

func (TestLogger) Enabled

func (_ TestLogger) Enabled() bool

func (TestLogger) Error

func (log TestLogger) Error(err error, msg string, args ...interface{})

func (TestLogger) Info

func (_ TestLogger) Info(_ string, _ ...interface{})

func (TestLogger) V

func (log TestLogger) V(v int) logr.Logger

func (TestLogger) WithName

func (log TestLogger) WithName(_ string) logr.Logger

func (TestLogger) WithValues

func (log TestLogger) WithValues(_ ...interface{}) logr.Logger

Jump to

Keyboard shortcuts

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