parameter

package
v0.0.8 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 MockMaker

type MockMaker struct {
	mock.Mock
}

MockMaker is an autogenerated mock type for the Maker type

func NewMockMaker

func NewMockMaker(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMaker

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

func (_m *MockMaker) EXPECT() *MockMaker_Expecter

func (*MockMaker) Make

func (_m *MockMaker) Make(config interface{}) (parameter.Parameter, error)

Make provides a mock function with given fields: config

type MockMaker_Expecter

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

func (*MockMaker_Expecter) Make

func (_e *MockMaker_Expecter) Make(config interface{}) *MockMaker_Make_Call

Make is a helper method to define mock.On call

  • config interface{}

type MockMaker_Make_Call

type MockMaker_Make_Call struct {
	*mock.Call
}

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

func (*MockMaker_Make_Call) Return

func (*MockMaker_Make_Call) Run

func (_c *MockMaker_Make_Call) Run(run func(config interface{})) *MockMaker_Make_Call

func (*MockMaker_Make_Call) RunAndReturn

func (_c *MockMaker_Make_Call) RunAndReturn(run func(interface{}) (parameter.Parameter, error)) *MockMaker_Make_Call

type MockParameter

type MockParameter struct {
	mock.Mock
}

MockParameter is an autogenerated mock type for the Parameter type

func NewMockParameter

func NewMockParameter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockParameter

NewMockParameter creates a new instance of MockParameter. 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 (*MockParameter) ArrayValue

func (_m *MockParameter) ArrayValue() []parameter.Parameter

ArrayValue provides a mock function with given fields:

func (*MockParameter) BoolValue

func (_m *MockParameter) BoolValue() bool

BoolValue provides a mock function with given fields:

func (*MockParameter) EXPECT

func (_m *MockParameter) EXPECT() *MockParameter_Expecter

func (*MockParameter) FloatValue

func (_m *MockParameter) FloatValue() float64

FloatValue provides a mock function with given fields:

func (*MockParameter) IntValue

func (_m *MockParameter) IntValue() int

IntValue provides a mock function with given fields:

func (*MockParameter) MapValue

func (_m *MockParameter) MapValue() map[string]parameter.Parameter

MapValue provides a mock function with given fields:

func (*MockParameter) StringValue

func (_m *MockParameter) StringValue() string

StringValue provides a mock function with given fields:

func (*MockParameter) Type

func (_m *MockParameter) Type() parameter.Type

Type provides a mock function with given fields:

type MockParameter_ArrayValue_Call

type MockParameter_ArrayValue_Call struct {
	*mock.Call
}

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

func (*MockParameter_ArrayValue_Call) Return

func (*MockParameter_ArrayValue_Call) Run

func (*MockParameter_ArrayValue_Call) RunAndReturn

type MockParameter_BoolValue_Call

type MockParameter_BoolValue_Call struct {
	*mock.Call
}

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

func (*MockParameter_BoolValue_Call) Return

func (*MockParameter_BoolValue_Call) Run

func (*MockParameter_BoolValue_Call) RunAndReturn

func (_c *MockParameter_BoolValue_Call) RunAndReturn(run func() bool) *MockParameter_BoolValue_Call

type MockParameter_Expecter

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

func (*MockParameter_Expecter) ArrayValue

ArrayValue is a helper method to define mock.On call

func (*MockParameter_Expecter) BoolValue

BoolValue is a helper method to define mock.On call

func (*MockParameter_Expecter) FloatValue

FloatValue is a helper method to define mock.On call

func (*MockParameter_Expecter) IntValue

IntValue is a helper method to define mock.On call

func (*MockParameter_Expecter) MapValue

MapValue is a helper method to define mock.On call

func (*MockParameter_Expecter) StringValue

StringValue is a helper method to define mock.On call

func (*MockParameter_Expecter) Type

Type is a helper method to define mock.On call

type MockParameter_FloatValue_Call

type MockParameter_FloatValue_Call struct {
	*mock.Call
}

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

func (*MockParameter_FloatValue_Call) Return

func (*MockParameter_FloatValue_Call) Run

func (*MockParameter_FloatValue_Call) RunAndReturn

type MockParameter_IntValue_Call

type MockParameter_IntValue_Call struct {
	*mock.Call
}

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

func (*MockParameter_IntValue_Call) Return

func (*MockParameter_IntValue_Call) Run

func (*MockParameter_IntValue_Call) RunAndReturn

func (_c *MockParameter_IntValue_Call) RunAndReturn(run func() int) *MockParameter_IntValue_Call

type MockParameter_MapValue_Call

type MockParameter_MapValue_Call struct {
	*mock.Call
}

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

func (*MockParameter_MapValue_Call) Return

func (*MockParameter_MapValue_Call) Run

func (*MockParameter_MapValue_Call) RunAndReturn

type MockParameter_StringValue_Call

type MockParameter_StringValue_Call struct {
	*mock.Call
}

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

func (*MockParameter_StringValue_Call) Return

func (*MockParameter_StringValue_Call) Run

func (*MockParameter_StringValue_Call) RunAndReturn

type MockParameter_Type_Call

type MockParameter_Type_Call struct {
	*mock.Call
}

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

func (*MockParameter_Type_Call) Return

func (*MockParameter_Type_Call) Run

func (_c *MockParameter_Type_Call) Run(run func()) *MockParameter_Type_Call

func (*MockParameter_Type_Call) RunAndReturn

func (_c *MockParameter_Type_Call) RunAndReturn(run func() parameter.Type) *MockParameter_Type_Call

Jump to

Keyboard shortcuts

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