mocks

package
v0.0.0-...-a7b4c27 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager

func NewManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manager

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

func (_m *Manager) EXPECT() *Manager_Expecter

func (*Manager) Init

func (_m *Manager) Init(mgr manager.Manager) error

Init provides a mock function with given fields: mgr

func (*Manager) Start

func (_m *Manager) Start(defaultSubsConfig env.DefaultSubscriptionConfig, params subscriptionmanagermanager.Params) error

Start provides a mock function with given fields: defaultSubsConfig, params

func (*Manager) Stop

func (_m *Manager) Stop(runCleanup bool) error

Stop provides a mock function with given fields: runCleanup

type Manager_Expecter

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

func (*Manager_Expecter) Init

func (_e *Manager_Expecter) Init(mgr interface{}) *Manager_Init_Call

Init is a helper method to define mock.On call

  • mgr manager.Manager

func (*Manager_Expecter) Start

func (_e *Manager_Expecter) Start(defaultSubsConfig interface{}, params interface{}) *Manager_Start_Call

Start is a helper method to define mock.On call

  • defaultSubsConfig env.DefaultSubscriptionConfig
  • params subscriptionmanagermanager.Params

func (*Manager_Expecter) Stop

func (_e *Manager_Expecter) Stop(runCleanup interface{}) *Manager_Stop_Call

Stop is a helper method to define mock.On call

  • runCleanup bool

type Manager_Init_Call

type Manager_Init_Call struct {
	*mock.Call
}

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

func (*Manager_Init_Call) Return

func (_c *Manager_Init_Call) Return(_a0 error) *Manager_Init_Call

func (*Manager_Init_Call) Run

func (_c *Manager_Init_Call) Run(run func(mgr manager.Manager)) *Manager_Init_Call

func (*Manager_Init_Call) RunAndReturn

func (_c *Manager_Init_Call) RunAndReturn(run func(manager.Manager) error) *Manager_Init_Call

type Manager_Start_Call

type Manager_Start_Call struct {
	*mock.Call
}

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

func (*Manager_Start_Call) Return

func (_c *Manager_Start_Call) Return(_a0 error) *Manager_Start_Call

func (*Manager_Start_Call) Run

type Manager_Stop_Call

type Manager_Stop_Call struct {
	*mock.Call
}

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

func (*Manager_Stop_Call) Return

func (_c *Manager_Stop_Call) Return(_a0 error) *Manager_Stop_Call

func (*Manager_Stop_Call) Run

func (_c *Manager_Stop_Call) Run(run func(runCleanup bool)) *Manager_Stop_Call

func (*Manager_Stop_Call) RunAndReturn

func (_c *Manager_Stop_Call) RunAndReturn(run func(bool) error) *Manager_Stop_Call

Jump to

Keyboard shortcuts

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