Documentation ¶
Index ¶
- type MockDiscoverer
- type MockDiscoverer_Discover_Call
- func (_c *MockDiscoverer_Discover_Call) Return(_a0 error) *MockDiscoverer_Discover_Call
- func (_c *MockDiscoverer_Discover_Call) Run(run func(ctx context.Context, cb func(discoverer.VersionedState) error)) *MockDiscoverer_Discover_Call
- func (_c *MockDiscoverer_Discover_Call) RunAndReturn(run func(context.Context, func(discoverer.VersionedState) error) error) *MockDiscoverer_Discover_Call
- type MockDiscoverer_Expecter
- type MockDiscoverer_NewVersionedState_Call
- func (_c *MockDiscoverer_NewVersionedState_Call) Return(_a0 discoverer.VersionedState) *MockDiscoverer_NewVersionedState_Call
- func (_c *MockDiscoverer_NewVersionedState_Call) Run(run func()) *MockDiscoverer_NewVersionedState_Call
- func (_c *MockDiscoverer_NewVersionedState_Call) RunAndReturn(run func() discoverer.VersionedState) *MockDiscoverer_NewVersionedState_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDiscoverer ¶
MockDiscoverer is an autogenerated mock type for the Discoverer type
func NewMockDiscoverer ¶
func NewMockDiscoverer(t interface { mock.TestingT Cleanup(func()) }) *MockDiscoverer
NewMockDiscoverer creates a new instance of MockDiscoverer. 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 (*MockDiscoverer) Discover ¶
func (_m *MockDiscoverer) Discover(ctx context.Context, cb func(discoverer.VersionedState) error) error
Discover provides a mock function with given fields: ctx, cb
func (*MockDiscoverer) EXPECT ¶
func (_m *MockDiscoverer) EXPECT() *MockDiscoverer_Expecter
func (*MockDiscoverer) NewVersionedState ¶
func (_m *MockDiscoverer) NewVersionedState() discoverer.VersionedState
NewVersionedState provides a mock function with given fields:
type MockDiscoverer_Discover_Call ¶
MockDiscoverer_Discover_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Discover'
func (*MockDiscoverer_Discover_Call) Return ¶
func (_c *MockDiscoverer_Discover_Call) Return(_a0 error) *MockDiscoverer_Discover_Call
func (*MockDiscoverer_Discover_Call) Run ¶
func (_c *MockDiscoverer_Discover_Call) Run(run func(ctx context.Context, cb func(discoverer.VersionedState) error)) *MockDiscoverer_Discover_Call
func (*MockDiscoverer_Discover_Call) RunAndReturn ¶
func (_c *MockDiscoverer_Discover_Call) RunAndReturn(run func(context.Context, func(discoverer.VersionedState) error) error) *MockDiscoverer_Discover_Call
type MockDiscoverer_Expecter ¶
type MockDiscoverer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDiscoverer_Expecter) Discover ¶
func (_e *MockDiscoverer_Expecter) Discover(ctx interface{}, cb interface{}) *MockDiscoverer_Discover_Call
Discover is a helper method to define mock.On call
- ctx context.Context
- cb func(discoverer.VersionedState) error
func (*MockDiscoverer_Expecter) NewVersionedState ¶
func (_e *MockDiscoverer_Expecter) NewVersionedState() *MockDiscoverer_NewVersionedState_Call
NewVersionedState is a helper method to define mock.On call
type MockDiscoverer_NewVersionedState_Call ¶
MockDiscoverer_NewVersionedState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewVersionedState'
func (*MockDiscoverer_NewVersionedState_Call) Return ¶
func (_c *MockDiscoverer_NewVersionedState_Call) Return(_a0 discoverer.VersionedState) *MockDiscoverer_NewVersionedState_Call
func (*MockDiscoverer_NewVersionedState_Call) Run ¶
func (_c *MockDiscoverer_NewVersionedState_Call) Run(run func()) *MockDiscoverer_NewVersionedState_Call
func (*MockDiscoverer_NewVersionedState_Call) RunAndReturn ¶
func (_c *MockDiscoverer_NewVersionedState_Call) RunAndReturn(run func() discoverer.VersionedState) *MockDiscoverer_NewVersionedState_Call