mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockInjector

type MockInjector struct {
	mock.Mock
}

MockInjector is an autogenerated mock type for the Injector type

func NewMockInjector

func NewMockInjector(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockInjector

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

func (_m *MockInjector) EXPECT() *MockInjector_Expecter

func (*MockInjector) Inject

func (_mock *MockInjector) Inject() (map[string]string, error)

Inject provides a mock function for the type MockInjector

func (*MockInjector) String

func (_mock *MockInjector) String() string

String provides a mock function for the type MockInjector

type MockInjector_Expecter

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

func (*MockInjector_Expecter) Inject

Inject is a helper method to define mock.On call

func (*MockInjector_Expecter) String

String is a helper method to define mock.On call

type MockInjector_Inject_Call

type MockInjector_Inject_Call struct {
	*mock.Call
}

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

func (*MockInjector_Inject_Call) Return

func (_c *MockInjector_Inject_Call) Return(stringToString map[string]string, err error) *MockInjector_Inject_Call

func (*MockInjector_Inject_Call) Run

func (*MockInjector_Inject_Call) RunAndReturn

func (_c *MockInjector_Inject_Call) RunAndReturn(run func() (map[string]string, error)) *MockInjector_Inject_Call

type MockInjector_String_Call

type MockInjector_String_Call struct {
	*mock.Call
}

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

func (*MockInjector_String_Call) Return

func (*MockInjector_String_Call) Run

func (*MockInjector_String_Call) RunAndReturn

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

Jump to

Keyboard shortcuts

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