factory

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 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 MockFunctions

type MockFunctions struct {
	mock.Mock
}

MockFunctions is an autogenerated mock type for the Functions type

func NewMockFunctions

func NewMockFunctions(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockFunctions

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

func (_m *MockFunctions) EXPECT() *MockFunctions_Expecter

func (*MockFunctions) GetFactoryFunc

func (_m *MockFunctions) GetFactoryFunc(funcName string) (factory.Func, error)

GetFactoryFunc provides a mock function with given fields: funcName

type MockFunctions_Expecter

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

func (*MockFunctions_Expecter) GetFactoryFunc

func (_e *MockFunctions_Expecter) GetFactoryFunc(funcName interface{}) *MockFunctions_GetFactoryFunc_Call

GetFactoryFunc is a helper method to define mock.On call

  • funcName string

type MockFunctions_GetFactoryFunc_Call

type MockFunctions_GetFactoryFunc_Call struct {
	*mock.Call
}

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

func (*MockFunctions_GetFactoryFunc_Call) Return

func (*MockFunctions_GetFactoryFunc_Call) Run

func (*MockFunctions_GetFactoryFunc_Call) RunAndReturn

Jump to

Keyboard shortcuts

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