mocks

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogSink

type LogSink struct {
	mock.Mock
}

LogSink is an autogenerated mock type for the LogSink type

func NewLogSink

func NewLogSink(t interface {
	mock.TestingT
	Cleanup(func())
}) *LogSink

NewLogSink creates a new instance of LogSink. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*LogSink) EXPECT

func (_m *LogSink) EXPECT() *LogSink_Expecter

func (*LogSink) Enabled

func (_mock *LogSink) Enabled(level int) bool

Enabled provides a mock function for the type LogSink

func (*LogSink) Error

func (_mock *LogSink) Error(err error, msg string, keysAndValues ...any)

Error provides a mock function for the type LogSink

func (*LogSink) Info

func (_mock *LogSink) Info(level int, msg string, keysAndValues ...any)

Info provides a mock function for the type LogSink

func (*LogSink) Init

func (_mock *LogSink) Init(info logr.RuntimeInfo)

Init provides a mock function for the type LogSink

func (*LogSink) WithName

func (_mock *LogSink) WithName(name string) logr.LogSink

WithName provides a mock function for the type LogSink

func (*LogSink) WithValues

func (_mock *LogSink) WithValues(keysAndValues ...any) logr.LogSink

WithValues provides a mock function for the type LogSink

type LogSink_Enabled_Call

type LogSink_Enabled_Call struct {
	*mock.Call
}

LogSink_Enabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Enabled'

func (*LogSink_Enabled_Call) Return

func (*LogSink_Enabled_Call) Run

func (_c *LogSink_Enabled_Call) Run(run func(level int)) *LogSink_Enabled_Call

func (*LogSink_Enabled_Call) RunAndReturn

func (_c *LogSink_Enabled_Call) RunAndReturn(run func(level int) bool) *LogSink_Enabled_Call

type LogSink_Error_Call

type LogSink_Error_Call struct {
	*mock.Call
}

LogSink_Error_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Error'

func (*LogSink_Error_Call) Return

func (_c *LogSink_Error_Call) Return() *LogSink_Error_Call

func (*LogSink_Error_Call) Run

func (_c *LogSink_Error_Call) Run(run func(err error, msg string, keysAndValues ...any)) *LogSink_Error_Call

func (*LogSink_Error_Call) RunAndReturn

func (_c *LogSink_Error_Call) RunAndReturn(run func(err error, msg string, keysAndValues ...any)) *LogSink_Error_Call

type LogSink_Expecter

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

func (*LogSink_Expecter) Enabled

func (_e *LogSink_Expecter) Enabled(level any) *LogSink_Enabled_Call

Enabled is a helper method to define mock.On call

  • level int

func (*LogSink_Expecter) Error

func (_e *LogSink_Expecter) Error(err any, msg any, keysAndValues ...any) *LogSink_Error_Call

Error is a helper method to define mock.On call

  • err error
  • msg string
  • keysAndValues ...any

func (*LogSink_Expecter) Info

func (_e *LogSink_Expecter) Info(level any, msg any, keysAndValues ...any) *LogSink_Info_Call

Info is a helper method to define mock.On call

  • level int
  • msg string
  • keysAndValues ...any

func (*LogSink_Expecter) Init

func (_e *LogSink_Expecter) Init(info any) *LogSink_Init_Call

Init is a helper method to define mock.On call

  • info logr.RuntimeInfo

func (*LogSink_Expecter) WithName

func (_e *LogSink_Expecter) WithName(name any) *LogSink_WithName_Call

WithName is a helper method to define mock.On call

  • name string

func (*LogSink_Expecter) WithValues

func (_e *LogSink_Expecter) WithValues(keysAndValues ...any) *LogSink_WithValues_Call

WithValues is a helper method to define mock.On call

  • keysAndValues ...any

type LogSink_Info_Call

type LogSink_Info_Call struct {
	*mock.Call
}

LogSink_Info_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Info'

func (*LogSink_Info_Call) Return

func (_c *LogSink_Info_Call) Return() *LogSink_Info_Call

func (*LogSink_Info_Call) Run

func (_c *LogSink_Info_Call) Run(run func(level int, msg string, keysAndValues ...any)) *LogSink_Info_Call

func (*LogSink_Info_Call) RunAndReturn

func (_c *LogSink_Info_Call) RunAndReturn(run func(level int, msg string, keysAndValues ...any)) *LogSink_Info_Call

type LogSink_Init_Call

type LogSink_Init_Call struct {
	*mock.Call
}

LogSink_Init_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Init'

func (*LogSink_Init_Call) Return

func (_c *LogSink_Init_Call) Return() *LogSink_Init_Call

func (*LogSink_Init_Call) Run

func (_c *LogSink_Init_Call) Run(run func(info logr.RuntimeInfo)) *LogSink_Init_Call

func (*LogSink_Init_Call) RunAndReturn

func (_c *LogSink_Init_Call) RunAndReturn(run func(info logr.RuntimeInfo)) *LogSink_Init_Call

type LogSink_WithName_Call

type LogSink_WithName_Call struct {
	*mock.Call
}

LogSink_WithName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithName'

func (*LogSink_WithName_Call) Return

func (*LogSink_WithName_Call) Run

func (_c *LogSink_WithName_Call) Run(run func(name string)) *LogSink_WithName_Call

func (*LogSink_WithName_Call) RunAndReturn

func (_c *LogSink_WithName_Call) RunAndReturn(run func(name string) logr.LogSink) *LogSink_WithName_Call

type LogSink_WithValues_Call

type LogSink_WithValues_Call struct {
	*mock.Call
}

LogSink_WithValues_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithValues'

func (*LogSink_WithValues_Call) Return

func (*LogSink_WithValues_Call) Run

func (_c *LogSink_WithValues_Call) Run(run func(keysAndValues ...any)) *LogSink_WithValues_Call

func (*LogSink_WithValues_Call) RunAndReturn

func (_c *LogSink_WithValues_Call) RunAndReturn(run func(keysAndValues ...any) logr.LogSink) *LogSink_WithValues_Call

Jump to

Keyboard shortcuts

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