spec

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: 3 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 *types.Spec) (spec.Spec, 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 *types.Spec

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 (_c *MockMaker_Make_Call) Return(_a0 spec.Spec, _a1 error) *MockMaker_Make_Call

func (*MockMaker_Make_Call) Run

func (_c *MockMaker_Make_Call) Run(run func(config *types.Spec)) *MockMaker_Make_Call

func (*MockMaker_Make_Call) RunAndReturn

func (_c *MockMaker_Make_Call) RunAndReturn(run func(*types.Spec) (spec.Spec, error)) *MockMaker_Make_Call

type MockSpec

type MockSpec struct {
	mock.Mock
}

MockSpec is an autogenerated mock type for the Spec type

func NewMockSpec

func NewMockSpec(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSpec

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

func (_m *MockSpec) EXPECT() *MockSpec_Expecter

func (*MockSpec) Run

func (_m *MockSpec) Run(filteredInstances []string) error

Run provides a mock function with given fields: filteredInstances

type MockSpec_Expecter

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

func (*MockSpec_Expecter) Run

func (_e *MockSpec_Expecter) Run(filteredInstances interface{}) *MockSpec_Run_Call

Run is a helper method to define mock.On call

  • filteredInstances []string

type MockSpec_Run_Call

type MockSpec_Run_Call struct {
	*mock.Call
}

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

func (*MockSpec_Run_Call) Return

func (_c *MockSpec_Run_Call) Return(_a0 error) *MockSpec_Run_Call

func (*MockSpec_Run_Call) Run

func (_c *MockSpec_Run_Call) Run(run func(filteredInstances []string)) *MockSpec_Run_Call

func (*MockSpec_Run_Call) RunAndReturn

func (_c *MockSpec_Run_Call) RunAndReturn(run func([]string) error) *MockSpec_Run_Call

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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