interfaces

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 1 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) GetValue

func (_m *MockProvider) GetValue(fieldPath []string) (string, error)

GetValue provides a mock function with given fields: fieldPath

type MockProvider_Expecter

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

func (*MockProvider_Expecter) GetValue

func (_e *MockProvider_Expecter) GetValue(fieldPath interface{}) *MockProvider_GetValue_Call

GetValue is a helper method to define mock.On call

  • fieldPath []string

type MockProvider_GetValue_Call

type MockProvider_GetValue_Call struct {
	*mock.Call
}

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

func (*MockProvider_GetValue_Call) Return

func (*MockProvider_GetValue_Call) Run

func (_c *MockProvider_GetValue_Call) Run(run func(fieldPath []string)) *MockProvider_GetValue_Call

func (*MockProvider_GetValue_Call) RunAndReturn

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

Jump to

Keyboard shortcuts

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