mockdiscovery

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDiscovery

type MockDiscovery struct {
	mock.Mock
}

MockDiscovery is an autogenerated mock type for the Discovery type

func NewMockDiscovery

func NewMockDiscovery(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDiscovery

NewMockDiscovery creates a new instance of MockDiscovery. 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 (*MockDiscovery) Close

func (_m *MockDiscovery) Close()

Close provides a mock function with given fields:

func (*MockDiscovery) EXPECT

func (_m *MockDiscovery) EXPECT() *MockDiscovery_Expecter

func (*MockDiscovery) Rediscover added in v1.10.0

func (_m *MockDiscovery) Rediscover()

Rediscover provides a mock function with given fields:

func (*MockDiscovery) Subscribe

func (_m *MockDiscovery) Subscribe(updates discovery.Updates)

Subscribe provides a mock function with given fields: updates

type MockDiscovery_Close_Call

type MockDiscovery_Close_Call struct {
	*mock.Call
}

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

func (*MockDiscovery_Close_Call) Return

func (*MockDiscovery_Close_Call) Run

func (*MockDiscovery_Close_Call) RunAndReturn

func (_c *MockDiscovery_Close_Call) RunAndReturn(run func()) *MockDiscovery_Close_Call

type MockDiscovery_Expecter

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

func (*MockDiscovery_Expecter) Close

Close is a helper method to define mock.On call

func (*MockDiscovery_Expecter) Rediscover added in v1.10.0

Rediscover is a helper method to define mock.On call

func (*MockDiscovery_Expecter) Subscribe

func (_e *MockDiscovery_Expecter) Subscribe(updates interface{}) *MockDiscovery_Subscribe_Call

Subscribe is a helper method to define mock.On call

  • updates discovery.Updates

type MockDiscovery_Rediscover_Call added in v1.10.0

type MockDiscovery_Rediscover_Call struct {
	*mock.Call
}

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

func (*MockDiscovery_Rediscover_Call) Return added in v1.10.0

func (*MockDiscovery_Rediscover_Call) Run added in v1.10.0

func (*MockDiscovery_Rediscover_Call) RunAndReturn added in v1.10.0

func (_c *MockDiscovery_Rediscover_Call) RunAndReturn(run func()) *MockDiscovery_Rediscover_Call

type MockDiscovery_Subscribe_Call

type MockDiscovery_Subscribe_Call struct {
	*mock.Call
}

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

func (*MockDiscovery_Subscribe_Call) Return

func (*MockDiscovery_Subscribe_Call) Run

func (*MockDiscovery_Subscribe_Call) RunAndReturn

Jump to

Keyboard shortcuts

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