testhelp

package
v0.0.0-...-3ff2914 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(t *testing.T, strt time.Time, format string, args ...interface{})

func Logf

func Logf(t *testing.T, strt time.Time, format string, args ...interface{})

Types

type ObservableLogs

type ObservableLogs struct {
	Output map[string]map[int][]interface{}
	// contains filtered or unexported fields
}

func NewObservableLogs

func NewObservableLogs() *ObservableLogs

func (*ObservableLogs) Enabled

func (t *ObservableLogs) Enabled(_ int) bool

func (*ObservableLogs) Error

func (t *ObservableLogs) Error(err error, msg string, keysAndValues ...interface{})

func (*ObservableLogs) Info

func (t *ObservableLogs) Info(level int, msg string, keysAndValues ...interface{})

func (*ObservableLogs) Init

func (t *ObservableLogs) Init(info logr.RuntimeInfo)

func (*ObservableLogs) WithName

func (t *ObservableLogs) WithName(_ string) logr.LogSink

func (*ObservableLogs) WithValues

func (t *ObservableLogs) WithValues(_ ...interface{}) logr.LogSink

type TestLogFuncWrap

type TestLogFuncWrap func(string, ...interface{})

type TestingLogWrapper

type TestingLogWrapper struct {
	// contains filtered or unexported fields
}

func NewTestingLogWrapper

func NewTestingLogWrapper(t *testing.T, start time.Time) *TestingLogWrapper

func (*TestingLogWrapper) Enabled

func (t *TestingLogWrapper) Enabled(_ int) bool

func (*TestingLogWrapper) Error

func (t *TestingLogWrapper) Error(err error, msg string, keysAndValues ...interface{})

func (*TestingLogWrapper) Info

func (t *TestingLogWrapper) Info(_ int, msg string, keysAndValues ...interface{})

func (*TestingLogWrapper) Init

func (t *TestingLogWrapper) Init(info logr.RuntimeInfo)

func (*TestingLogWrapper) WithName

func (t *TestingLogWrapper) WithName(_ string) logr.LogSink

func (*TestingLogWrapper) WithValues

func (t *TestingLogWrapper) WithValues(_ ...interface{}) logr.LogSink

Jump to

Keyboard shortcuts

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