mock_resolver

package
v0.10.3-0...-304cdc7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBuilder

type MockBuilder struct {
	mock.Mock
}

MockBuilder is an autogenerated mock type for the Builder type

func NewMockBuilder

func NewMockBuilder(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockBuilder

NewMockBuilder creates a new instance of MockBuilder. 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 (*MockBuilder) Build

Build provides a mock function with given fields: target, cc, opts

func (*MockBuilder) Close

func (_m *MockBuilder) Close()

Close provides a mock function with given fields:

func (*MockBuilder) EXPECT

func (_m *MockBuilder) EXPECT() *MockBuilder_Expecter

func (*MockBuilder) Resolver

func (_m *MockBuilder) Resolver() serviceresolver.Resolver

Resolver provides a mock function with given fields:

func (*MockBuilder) Scheme

func (_m *MockBuilder) Scheme() string

Scheme provides a mock function with given fields:

type MockBuilder_Build_Call

type MockBuilder_Build_Call struct {
	*mock.Call
}

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

func (*MockBuilder_Build_Call) Return

func (*MockBuilder_Build_Call) Run

type MockBuilder_Close_Call

type MockBuilder_Close_Call struct {
	*mock.Call
}

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

func (*MockBuilder_Close_Call) Return

func (*MockBuilder_Close_Call) Run

func (_c *MockBuilder_Close_Call) Run(run func()) *MockBuilder_Close_Call

func (*MockBuilder_Close_Call) RunAndReturn

func (_c *MockBuilder_Close_Call) RunAndReturn(run func()) *MockBuilder_Close_Call

type MockBuilder_Expecter

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

func (*MockBuilder_Expecter) Build

func (_e *MockBuilder_Expecter) Build(target interface{}, cc interface{}, opts interface{}) *MockBuilder_Build_Call

Build is a helper method to define mock.On call

  • target resolver.Target
  • cc resolver.ClientConn
  • opts resolver.BuildOptions

func (*MockBuilder_Expecter) Close

Close is a helper method to define mock.On call

func (*MockBuilder_Expecter) Resolver

Resolver is a helper method to define mock.On call

func (*MockBuilder_Expecter) Scheme

Scheme is a helper method to define mock.On call

type MockBuilder_Resolver_Call

type MockBuilder_Resolver_Call struct {
	*mock.Call
}

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

func (*MockBuilder_Resolver_Call) Return

func (*MockBuilder_Resolver_Call) Run

func (*MockBuilder_Resolver_Call) RunAndReturn

type MockBuilder_Scheme_Call

type MockBuilder_Scheme_Call struct {
	*mock.Call
}

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

func (*MockBuilder_Scheme_Call) Return

func (*MockBuilder_Scheme_Call) Run

func (_c *MockBuilder_Scheme_Call) Run(run func()) *MockBuilder_Scheme_Call

func (*MockBuilder_Scheme_Call) RunAndReturn

func (_c *MockBuilder_Scheme_Call) RunAndReturn(run func() string) *MockBuilder_Scheme_Call

type MockResolver

type MockResolver struct {
	mock.Mock
}

MockResolver is an autogenerated mock type for the Resolver type

func NewMockResolver

func NewMockResolver(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockResolver

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

func (_m *MockResolver) EXPECT() *MockResolver_Expecter

func (*MockResolver) GetLatestState

func (_m *MockResolver) GetLatestState() discoverer.VersionedState

GetLatestState provides a mock function with given fields:

func (*MockResolver) Watch

func (_m *MockResolver) Watch(ctx context.Context, cb func(discoverer.VersionedState) error) error

Watch provides a mock function with given fields: ctx, cb

type MockResolver_Expecter

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

func (*MockResolver_Expecter) GetLatestState

GetLatestState is a helper method to define mock.On call

func (*MockResolver_Expecter) Watch

func (_e *MockResolver_Expecter) Watch(ctx interface{}, cb interface{}) *MockResolver_Watch_Call

Watch is a helper method to define mock.On call

  • ctx context.Context
  • cb func(discoverer.VersionedState) error

type MockResolver_GetLatestState_Call

type MockResolver_GetLatestState_Call struct {
	*mock.Call
}

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

func (*MockResolver_GetLatestState_Call) Return

func (*MockResolver_GetLatestState_Call) Run

func (*MockResolver_GetLatestState_Call) RunAndReturn

type MockResolver_Watch_Call

type MockResolver_Watch_Call struct {
	*mock.Call
}

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

func (*MockResolver_Watch_Call) Return

func (*MockResolver_Watch_Call) Run

func (*MockResolver_Watch_Call) RunAndReturn

Jump to

Keyboard shortcuts

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