test

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeLogger

type FakeLogger struct {
	Infos     []string
	Errors    []error
	ErrorMsgs []string
}

FakeLogger is a logger for testing

func (*FakeLogger) Clear

func (f *FakeLogger) Clear()

Clear clears the logger

func (*FakeLogger) Enabled

func (f *FakeLogger) Enabled() bool

Enabled returns true

func (*FakeLogger) Error

func (f *FakeLogger) Error(err error, msg string, _ ...interface{})

Error logs error level

func (*FakeLogger) Info

func (f *FakeLogger) Info(msg string, _ ...interface{})

Info logs info level

func (*FakeLogger) V

func (f *FakeLogger) V(_ int) logr.Logger

V returns the logger

func (*FakeLogger) WithName

func (f *FakeLogger) WithName(_ string) logr.Logger

WithName returns the logger

func (*FakeLogger) WithValues

func (f *FakeLogger) WithValues(_ ...interface{}) logr.Logger

WithValues returns the logger

Jump to

Keyboard shortcuts

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