testing

package
v0.2.8-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 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

func (f *FakeLogger) NumCalls() int

func (*FakeLogger) WithResource

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

type FakeTLogger

type FakeTLogger struct {
	Messages []string
}

func (*FakeTLogger) Helper

func (tl *FakeTLogger) Helper()

func (*FakeTLogger) Log

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

type Logger

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

type Operation

type Operation string

type Status

type Status string

Jump to

Keyboard shortcuts

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