mock

package
v0.55.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2025 License: AGPL-3.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 Log

type Log struct {
	LevelFn func() log.Level
	Fields  log.Fields
	DebugFn func(args ...any)
	InfoFn  func(args ...any)
	WarnFn  func(args ...any)
	ErrorFn func(args ...any)
	PanicFn func(args ...any)
}

func New

func New(t *testing.T) *Log

func (*Log) Debug

func (l *Log) Debug(args ...any)

func (*Log) Error

func (l *Log) Error(args ...any)

func (*Log) Info

func (l *Log) Info(args ...any)

func (*Log) Level

func (l *Log) Level() log.Level

func (*Log) MockAllowAllCalls

func (l *Log) MockAllowAllCalls() *Log

func (*Log) MockReset

func (l *Log) MockReset(t *testing.T) *Log

func (*Log) Panic

func (l *Log) Panic(args ...any)

func (*Log) Warn

func (l *Log) Warn(args ...any)

func (*Log) WithAdvice

func (l *Log) WithAdvice(advice string) log.Logger

func (*Log) WithError

func (l *Log) WithError(err error) log.Logger

func (*Log) WithField

func (l *Log) WithField(key string, value any) log.Logger

func (*Log) WithFields

func (l *Log) WithFields(fields log.Fields) log.Logger

Jump to

Keyboard shortcuts

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