mocks

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT 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 mockConstructorTestingTNewManager) *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.

func (*Manager) EXPECT

func (_m *Manager) EXPECT() *Manager_Expecter

func (*Manager) Monitor

func (_m *Manager) Monitor(key string, f func() error) func() error

Monitor provides a mock function with given fields: key, f

func (*Manager) MonitorWithContext

func (_m *Manager) MonitorWithContext(key string, f func(context.Context) error) func(context.Context) error

MonitorWithContext provides a mock function with given fields: key, f

func (*Manager) PrintReport

func (_m *Manager) PrintReport(logger log.Logger)

PrintReport provides a mock function with given fields: logger

func (*Manager) StartWork

func (_m *Manager) StartWork(key string, steps int) status.WorkItem

StartWork provides a mock function with given fields: key, steps

type Manager_Expecter

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

func (*Manager_Expecter) Monitor

func (_e *Manager_Expecter) Monitor(key interface{}, f interface{}) *Manager_Monitor_Call

Monitor is a helper method to define mock.On call

  • key string
  • f func() error

func (*Manager_Expecter) MonitorWithContext

func (_e *Manager_Expecter) MonitorWithContext(key interface{}, f interface{}) *Manager_MonitorWithContext_Call

MonitorWithContext is a helper method to define mock.On call

  • key string
  • f func(context.Context) error

func (*Manager_Expecter) PrintReport

func (_e *Manager_Expecter) PrintReport(logger interface{}) *Manager_PrintReport_Call

PrintReport is a helper method to define mock.On call

  • logger log.Logger

func (*Manager_Expecter) StartWork

func (_e *Manager_Expecter) StartWork(key interface{}, steps interface{}) *Manager_StartWork_Call

StartWork is a helper method to define mock.On call

  • key string
  • steps int

type Manager_MonitorWithContext_Call

type Manager_MonitorWithContext_Call struct {
	*mock.Call
}

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

func (*Manager_MonitorWithContext_Call) Return

func (*Manager_MonitorWithContext_Call) Run

func (*Manager_MonitorWithContext_Call) RunAndReturn

type Manager_Monitor_Call

type Manager_Monitor_Call struct {
	*mock.Call
}

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

func (*Manager_Monitor_Call) Return

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

func (*Manager_Monitor_Call) Run

func (_c *Manager_Monitor_Call) Run(run func(key string, f func() error)) *Manager_Monitor_Call

func (*Manager_Monitor_Call) RunAndReturn

func (_c *Manager_Monitor_Call) RunAndReturn(run func(string, func() error) func() error) *Manager_Monitor_Call

type Manager_PrintReport_Call

type Manager_PrintReport_Call struct {
	*mock.Call
}

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

func (*Manager_PrintReport_Call) Return

func (*Manager_PrintReport_Call) Run

func (_c *Manager_PrintReport_Call) Run(run func(logger log.Logger)) *Manager_PrintReport_Call

func (*Manager_PrintReport_Call) RunAndReturn

func (_c *Manager_PrintReport_Call) RunAndReturn(run func(log.Logger)) *Manager_PrintReport_Call

type Manager_StartWork_Call

type Manager_StartWork_Call struct {
	*mock.Call
}

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

func (*Manager_StartWork_Call) Return

func (*Manager_StartWork_Call) Run

func (_c *Manager_StartWork_Call) Run(run func(key string, steps int)) *Manager_StartWork_Call

func (*Manager_StartWork_Call) RunAndReturn

type WorkItem

type WorkItem struct {
	mock.Mock
}

WorkItem is an autogenerated mock type for the WorkItem type

func NewWorkItem

func NewWorkItem(t mockConstructorTestingTNewWorkItem) *WorkItem

NewWorkItem creates a new instance of WorkItem. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*WorkItem) EXPECT

func (_m *WorkItem) EXPECT() *WorkItem_Expecter

func (*WorkItem) Monitor

func (_m *WorkItem) Monitor(f func() error) func() error

Monitor provides a mock function with given fields: f

func (*WorkItem) ReportDone

func (_m *WorkItem) ReportDone()

ReportDone provides a mock function with given fields:

func (*WorkItem) ReportError

func (_m *WorkItem) ReportError(err error)

ReportError provides a mock function with given fields: err

func (*WorkItem) ReportProgress

func (_m *WorkItem) ReportProgress(step int, progress float64)

ReportProgress provides a mock function with given fields: step, progress

type WorkItem_Expecter

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

func (*WorkItem_Expecter) Monitor

func (_e *WorkItem_Expecter) Monitor(f interface{}) *WorkItem_Monitor_Call

Monitor is a helper method to define mock.On call

  • f func() error

func (*WorkItem_Expecter) ReportDone

func (_e *WorkItem_Expecter) ReportDone() *WorkItem_ReportDone_Call

ReportDone is a helper method to define mock.On call

func (*WorkItem_Expecter) ReportError

func (_e *WorkItem_Expecter) ReportError(err interface{}) *WorkItem_ReportError_Call

ReportError is a helper method to define mock.On call

  • err error

func (*WorkItem_Expecter) ReportProgress

func (_e *WorkItem_Expecter) ReportProgress(step interface{}, progress interface{}) *WorkItem_ReportProgress_Call

ReportProgress is a helper method to define mock.On call

  • step int
  • progress float64

type WorkItem_Monitor_Call

type WorkItem_Monitor_Call struct {
	*mock.Call
}

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

func (*WorkItem_Monitor_Call) Return

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

func (*WorkItem_Monitor_Call) Run

func (_c *WorkItem_Monitor_Call) Run(run func(f func() error)) *WorkItem_Monitor_Call

func (*WorkItem_Monitor_Call) RunAndReturn

func (_c *WorkItem_Monitor_Call) RunAndReturn(run func(func() error) func() error) *WorkItem_Monitor_Call

type WorkItem_ReportDone_Call

type WorkItem_ReportDone_Call struct {
	*mock.Call
}

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

func (*WorkItem_ReportDone_Call) Return

func (*WorkItem_ReportDone_Call) Run

func (*WorkItem_ReportDone_Call) RunAndReturn

func (_c *WorkItem_ReportDone_Call) RunAndReturn(run func()) *WorkItem_ReportDone_Call

type WorkItem_ReportError_Call

type WorkItem_ReportError_Call struct {
	*mock.Call
}

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

func (*WorkItem_ReportError_Call) Return

func (*WorkItem_ReportError_Call) Run

func (*WorkItem_ReportError_Call) RunAndReturn

func (_c *WorkItem_ReportError_Call) RunAndReturn(run func(error)) *WorkItem_ReportError_Call

type WorkItem_ReportProgress_Call

type WorkItem_ReportProgress_Call struct {
	*mock.Call
}

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

func (*WorkItem_ReportProgress_Call) Return

func (*WorkItem_ReportProgress_Call) Run

func (_c *WorkItem_ReportProgress_Call) Run(run func(step int, progress float64)) *WorkItem_ReportProgress_Call

func (*WorkItem_ReportProgress_Call) RunAndReturn

Jump to

Keyboard shortcuts

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