mocks

package
v0.0.0-...-11b31ba Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	mock.Mock
}

Controller is an autogenerated mock type for the Controller type

func NewController

func NewController(t interface {
	mock.TestingT
	Cleanup(func())
}) *Controller

NewController creates a new instance of Controller. 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 (*Controller) EXPECT

func (_m *Controller) EXPECT() *Controller_Expecter

func (*Controller) GetLogger

func (_m *Controller) GetLogger() logr.Logger

GetLogger provides a mock function with given fields:

func (*Controller) Reconcile

func (_m *Controller) Reconcile(_a0 context.Context, _a1 reconcile.Request) (reconcile.Result, error)

Reconcile provides a mock function with given fields: _a0, _a1

func (*Controller) Start

func (_m *Controller) Start(ctx context.Context) error

Start provides a mock function with given fields: ctx

func (*Controller) Watch

func (_m *Controller) Watch(src source.Source, eventhandler handler.EventHandler, predicates ...predicate.Predicate) error

Watch provides a mock function with given fields: src, eventhandler, predicates

type Controller_Expecter

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

func (*Controller_Expecter) GetLogger

GetLogger is a helper method to define mock.On call

func (*Controller_Expecter) Reconcile

func (_e *Controller_Expecter) Reconcile(_a0 interface{}, _a1 interface{}) *Controller_Reconcile_Call

Reconcile is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 reconcile.Request

func (*Controller_Expecter) Start

func (_e *Controller_Expecter) Start(ctx interface{}) *Controller_Start_Call

Start is a helper method to define mock.On call

  • ctx context.Context

func (*Controller_Expecter) Watch

func (_e *Controller_Expecter) Watch(src interface{}, eventhandler interface{}, predicates ...interface{}) *Controller_Watch_Call

Watch is a helper method to define mock.On call

  • src source.Source
  • eventhandler handler.EventHandler
  • predicates ...predicate.Predicate

type Controller_GetLogger_Call

type Controller_GetLogger_Call struct {
	*mock.Call
}

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

func (*Controller_GetLogger_Call) Return

func (*Controller_GetLogger_Call) Run

func (*Controller_GetLogger_Call) RunAndReturn

func (_c *Controller_GetLogger_Call) RunAndReturn(run func() logr.Logger) *Controller_GetLogger_Call

type Controller_Reconcile_Call

type Controller_Reconcile_Call struct {
	*mock.Call
}

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

func (*Controller_Reconcile_Call) Return

func (*Controller_Reconcile_Call) Run

func (*Controller_Reconcile_Call) RunAndReturn

type Controller_Start_Call

type Controller_Start_Call struct {
	*mock.Call
}

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

func (*Controller_Start_Call) Return

func (*Controller_Start_Call) Run

func (*Controller_Start_Call) RunAndReturn

func (_c *Controller_Start_Call) RunAndReturn(run func(context.Context) error) *Controller_Start_Call

type Controller_Watch_Call

type Controller_Watch_Call struct {
	*mock.Call
}

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

func (*Controller_Watch_Call) Return

func (*Controller_Watch_Call) Run

func (_c *Controller_Watch_Call) Run(run func(src source.Source, eventhandler handler.EventHandler, predicates ...predicate.Predicate)) *Controller_Watch_Call

func (*Controller_Watch_Call) RunAndReturn

type Watcher

type Watcher struct {
	mock.Mock
}

Watcher is an autogenerated mock type for the Watcher type

func NewWatcher

func NewWatcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *Watcher

NewWatcher creates a new instance of Watcher. 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 (*Watcher) EXPECT

func (_m *Watcher) EXPECT() *Watcher_Expecter

func (*Watcher) GetEventsChannel

func (_m *Watcher) GetEventsChannel() <-chan event.GenericEvent

GetEventsChannel provides a mock function with given fields:

func (*Watcher) IsStarted

func (_m *Watcher) IsStarted() bool

IsStarted provides a mock function with given fields:

func (*Watcher) Start

func (_m *Watcher) Start()

Start provides a mock function with given fields:

func (*Watcher) Stop

func (_m *Watcher) Stop()

Stop provides a mock function with given fields:

type Watcher_Expecter

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

func (*Watcher_Expecter) GetEventsChannel

func (_e *Watcher_Expecter) GetEventsChannel() *Watcher_GetEventsChannel_Call

GetEventsChannel is a helper method to define mock.On call

func (*Watcher_Expecter) IsStarted

func (_e *Watcher_Expecter) IsStarted() *Watcher_IsStarted_Call

IsStarted is a helper method to define mock.On call

func (*Watcher_Expecter) Start

func (_e *Watcher_Expecter) Start() *Watcher_Start_Call

Start is a helper method to define mock.On call

func (*Watcher_Expecter) Stop

func (_e *Watcher_Expecter) Stop() *Watcher_Stop_Call

Stop is a helper method to define mock.On call

type Watcher_GetEventsChannel_Call

type Watcher_GetEventsChannel_Call struct {
	*mock.Call
}

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

func (*Watcher_GetEventsChannel_Call) Return

func (*Watcher_GetEventsChannel_Call) Run

func (*Watcher_GetEventsChannel_Call) RunAndReturn

type Watcher_IsStarted_Call

type Watcher_IsStarted_Call struct {
	*mock.Call
}

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

func (*Watcher_IsStarted_Call) Return

func (*Watcher_IsStarted_Call) Run

func (_c *Watcher_IsStarted_Call) Run(run func()) *Watcher_IsStarted_Call

func (*Watcher_IsStarted_Call) RunAndReturn

func (_c *Watcher_IsStarted_Call) RunAndReturn(run func() bool) *Watcher_IsStarted_Call

type Watcher_Start_Call

type Watcher_Start_Call struct {
	*mock.Call
}

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

func (*Watcher_Start_Call) Return

func (_c *Watcher_Start_Call) Return() *Watcher_Start_Call

func (*Watcher_Start_Call) Run

func (_c *Watcher_Start_Call) Run(run func()) *Watcher_Start_Call

func (*Watcher_Start_Call) RunAndReturn

func (_c *Watcher_Start_Call) RunAndReturn(run func()) *Watcher_Start_Call

type Watcher_Stop_Call

type Watcher_Stop_Call struct {
	*mock.Call
}

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

func (*Watcher_Stop_Call) Return

func (_c *Watcher_Stop_Call) Return() *Watcher_Stop_Call

func (*Watcher_Stop_Call) Run

func (_c *Watcher_Stop_Call) Run(run func()) *Watcher_Stop_Call

func (*Watcher_Stop_Call) RunAndReturn

func (_c *Watcher_Stop_Call) RunAndReturn(run func()) *Watcher_Stop_Call

Jump to

Keyboard shortcuts

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