mocks

package
v1.29.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: Apache-2.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 MockProvider

type MockProvider struct {
	mock.Mock
}

MockProvider is an autogenerated mock type for the Provider type

func NewMockProvider

func NewMockProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockProvider

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

func (_m *MockProvider) EXPECT() *MockProvider_Expecter

func (*MockProvider) Shutdown

func (_m *MockProvider) Shutdown(_a0 context.Context) error

Shutdown provides a mock function with given fields: _a0

func (*MockProvider) Start

func (_m *MockProvider) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

type MockProvider_Expecter

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

func (*MockProvider_Expecter) Shutdown

func (_e *MockProvider_Expecter) Shutdown(_a0 interface{}) *MockProvider_Shutdown_Call

Shutdown is a helper method to define mock.On call

  • _a0 context.Context

func (*MockProvider_Expecter) Start

func (_e *MockProvider_Expecter) Start(_a0 interface{}) *MockProvider_Start_Call

Start is a helper method to define mock.On call

  • _a0 context.Context

type MockProvider_Shutdown_Call

type MockProvider_Shutdown_Call struct {
	*mock.Call
}

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

func (*MockProvider_Shutdown_Call) Return

func (*MockProvider_Shutdown_Call) Run

func (*MockProvider_Shutdown_Call) RunAndReturn

type MockProvider_Start_Call

type MockProvider_Start_Call struct {
	*mock.Call
}

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

func (*MockProvider_Start_Call) Return

func (*MockProvider_Start_Call) Run

func (*MockProvider_Start_Call) RunAndReturn

Jump to

Keyboard shortcuts

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