expect

package
v0.0.4 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: 4 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) MakeCustomAction

func (_m *MockMaker) MakeCustomAction(config *types.CustomExpectationAction, sl services.ServiceLocator, defaultTimeout int) (action.Action, error)

MakeCustomAction provides a mock function with given fields: config, sl, defaultTimeout

func (*MockMaker) MakeMetricsAction

func (_m *MockMaker) MakeMetricsAction(config *types.MetricsExpectationAction, sl services.ServiceLocator, defaultTimeout int) (action.Action, error)

MakeMetricsAction provides a mock function with given fields: config, sl, defaultTimeout

func (*MockMaker) MakeOutputAction

func (_m *MockMaker) MakeOutputAction(config *types.OutputExpectationAction, sl services.ServiceLocator, defaultTimeout int) (action.Action, error)

MakeOutputAction provides a mock function with given fields: config, sl, defaultTimeout

func (*MockMaker) MakeResponseAction

func (_m *MockMaker) MakeResponseAction(config *types.ResponseExpectationAction, sl services.ServiceLocator, defaultTimeout int) (action.Action, error)

MakeResponseAction provides a mock function with given fields: config, sl, defaultTimeout

type MockMaker_Expecter

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

func (*MockMaker_Expecter) MakeCustomAction

func (_e *MockMaker_Expecter) MakeCustomAction(config interface{}, sl interface{}, defaultTimeout interface{}) *MockMaker_MakeCustomAction_Call

MakeCustomAction is a helper method to define mock.On call

  • config *types.CustomExpectationAction
  • sl services.ServiceLocator
  • defaultTimeout int

func (*MockMaker_Expecter) MakeMetricsAction

func (_e *MockMaker_Expecter) MakeMetricsAction(config interface{}, sl interface{}, defaultTimeout interface{}) *MockMaker_MakeMetricsAction_Call

MakeMetricsAction is a helper method to define mock.On call

  • config *types.MetricsExpectationAction
  • sl services.ServiceLocator
  • defaultTimeout int

func (*MockMaker_Expecter) MakeOutputAction

func (_e *MockMaker_Expecter) MakeOutputAction(config interface{}, sl interface{}, defaultTimeout interface{}) *MockMaker_MakeOutputAction_Call

MakeOutputAction is a helper method to define mock.On call

  • config *types.OutputExpectationAction
  • sl services.ServiceLocator
  • defaultTimeout int

func (*MockMaker_Expecter) MakeResponseAction

func (_e *MockMaker_Expecter) MakeResponseAction(config interface{}, sl interface{}, defaultTimeout interface{}) *MockMaker_MakeResponseAction_Call

MakeResponseAction is a helper method to define mock.On call

  • config *types.ResponseExpectationAction
  • sl services.ServiceLocator
  • defaultTimeout int

type MockMaker_MakeCustomAction_Call

type MockMaker_MakeCustomAction_Call struct {
	*mock.Call
}

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

func (*MockMaker_MakeCustomAction_Call) Return

func (*MockMaker_MakeCustomAction_Call) Run

type MockMaker_MakeMetricsAction_Call

type MockMaker_MakeMetricsAction_Call struct {
	*mock.Call
}

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

func (*MockMaker_MakeMetricsAction_Call) Return

func (*MockMaker_MakeMetricsAction_Call) Run

type MockMaker_MakeOutputAction_Call

type MockMaker_MakeOutputAction_Call struct {
	*mock.Call
}

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

func (*MockMaker_MakeOutputAction_Call) Return

func (*MockMaker_MakeOutputAction_Call) Run

type MockMaker_MakeResponseAction_Call

type MockMaker_MakeResponseAction_Call struct {
	*mock.Call
}

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

func (*MockMaker_MakeResponseAction_Call) Return

func (*MockMaker_MakeResponseAction_Call) Run

Jump to

Keyboard shortcuts

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