mocks

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 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 MockBackend added in v0.26.0

type MockBackend struct {
	mock.Mock
}

MockBackend is an autogenerated mock type for the Backend type

func NewMockBackend added in v0.26.0

func NewMockBackend(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockBackend

NewMockBackend creates a new instance of MockBackend. 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 (*MockBackend) EXPECT added in v0.26.0

func (_m *MockBackend) EXPECT() *MockBackend_Expecter

func (*MockBackend) Get added in v0.26.0

func (_mock *MockBackend) Get(key string) string

Get provides a mock function for the type MockBackend

func (*MockBackend) Process added in v0.26.0

func (_mock *MockBackend) Process(prefix string, spec interface{}) error

Process provides a mock function for the type MockBackend

type MockBackend_Expecter added in v0.26.0

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

func (*MockBackend_Expecter) Get added in v0.26.0

Get is a helper method to define mock.On call

  • key string

func (*MockBackend_Expecter) Process added in v0.26.0

func (_e *MockBackend_Expecter) Process(prefix any, spec any) *MockBackend_Process_Call

Process is a helper method to define mock.On call

  • prefix string
  • spec interface{}

type MockBackend_Get_Call added in v0.26.0

type MockBackend_Get_Call struct {
	*mock.Call
}

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

func (*MockBackend_Get_Call) Return added in v0.26.0

func (*MockBackend_Get_Call) Run added in v0.26.0

func (_c *MockBackend_Get_Call) Run(run func(key string)) *MockBackend_Get_Call

func (*MockBackend_Get_Call) RunAndReturn added in v0.26.0

func (_c *MockBackend_Get_Call) RunAndReturn(run func(key string) string) *MockBackend_Get_Call

type MockBackend_Process_Call added in v0.26.0

type MockBackend_Process_Call struct {
	*mock.Call
}

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

func (*MockBackend_Process_Call) Return added in v0.26.0

func (*MockBackend_Process_Call) Run added in v0.26.0

func (_c *MockBackend_Process_Call) Run(run func(prefix string, spec interface{})) *MockBackend_Process_Call

func (*MockBackend_Process_Call) RunAndReturn added in v0.26.0

func (_c *MockBackend_Process_Call) RunAndReturn(run func(prefix string, spec interface{}) error) *MockBackend_Process_Call

Jump to

Keyboard shortcuts

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