testing

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 3 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 {
	Logs []string
	// contains filtered or unexported fields
}

TODO: not thread safe

func (*FakeLogger) Log

func (f *FakeLogger) Log(operation Operation, status Status, color *color.Color, args ...fmt.Stringer)

func (*FakeLogger) NumCalls added in v0.0.4

func (f *FakeLogger) NumCalls() int

func (*FakeLogger) WithResource added in v0.0.4

func (f *FakeLogger) WithResource(resource ctrlclient.Object) Logger

type FakeTLogger added in v0.0.4

type FakeTLogger struct {
	Messages []string
}

func (*FakeTLogger) Helper added in v0.0.4

func (tl *FakeTLogger) Helper()

func (*FakeTLogger) Log added in v0.0.4

func (tl *FakeTLogger) Log(args ...any)

type Logger added in v0.0.4

type Logger interface {
	Log(Operation, Status, *color.Color, ...fmt.Stringer)
	WithResource(ctrlclient.Object) Logger
}

type Operation added in v0.0.6

type Operation string

type Status added in v0.0.6

type Status string

Jump to

Keyboard shortcuts

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