mock_discoverer

package
v0.10.3-0...-74752f2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDiscoverer

type MockDiscoverer struct {
	mock.Mock
}

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 (*MockDiscoverer) NewVersionedState

func (_m *MockDiscoverer) NewVersionedState() discoverer.VersionedState

NewVersionedState provides a mock function with given fields:

type MockDiscoverer_Discover_Call

type MockDiscoverer_Discover_Call struct {
	*mock.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 (*MockDiscoverer_Discover_Call) Run

func (*MockDiscoverer_Discover_Call) RunAndReturn

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

NewVersionedState is a helper method to define mock.On call

type MockDiscoverer_NewVersionedState_Call

type MockDiscoverer_NewVersionedState_Call struct {
	*mock.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 (*MockDiscoverer_NewVersionedState_Call) Run

func (*MockDiscoverer_NewVersionedState_Call) RunAndReturn

Jump to

Keyboard shortcuts

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