expectations

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: 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) MakeMetricsExpectation

func (_m *MockMaker) MakeMetricsExpectation(config *types.MetricsExpectation) (*expectations.MetricsExpectation, error)

MakeMetricsExpectation provides a mock function with given fields: config

func (*MockMaker) MakeOutputExpectation

func (_m *MockMaker) MakeOutputExpectation(config *types.OutputExpectation) (*expectations.OutputExpectation, error)

MakeOutputExpectation provides a mock function with given fields: config

func (*MockMaker) MakeResponseExpectation

func (_m *MockMaker) MakeResponseExpectation(config *types.ResponseExpectation) (*expectations.ResponseExpectation, error)

MakeResponseExpectation provides a mock function with given fields: config

type MockMaker_Expecter

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

func (*MockMaker_Expecter) MakeMetricsExpectation

func (_e *MockMaker_Expecter) MakeMetricsExpectation(config interface{}) *MockMaker_MakeMetricsExpectation_Call

MakeMetricsExpectation is a helper method to define mock.On call

  • config *types.MetricsExpectation

func (*MockMaker_Expecter) MakeOutputExpectation

func (_e *MockMaker_Expecter) MakeOutputExpectation(config interface{}) *MockMaker_MakeOutputExpectation_Call

MakeOutputExpectation is a helper method to define mock.On call

  • config *types.OutputExpectation

func (*MockMaker_Expecter) MakeResponseExpectation

func (_e *MockMaker_Expecter) MakeResponseExpectation(config interface{}) *MockMaker_MakeResponseExpectation_Call

MakeResponseExpectation is a helper method to define mock.On call

  • config *types.ResponseExpectation

type MockMaker_MakeMetricsExpectation_Call

type MockMaker_MakeMetricsExpectation_Call struct {
	*mock.Call
}

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

func (*MockMaker_MakeMetricsExpectation_Call) Return

func (*MockMaker_MakeMetricsExpectation_Call) Run

type MockMaker_MakeOutputExpectation_Call

type MockMaker_MakeOutputExpectation_Call struct {
	*mock.Call
}

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

func (*MockMaker_MakeOutputExpectation_Call) Return

func (*MockMaker_MakeOutputExpectation_Call) Run

func (*MockMaker_MakeOutputExpectation_Call) RunAndReturn

type MockMaker_MakeResponseExpectation_Call

type MockMaker_MakeResponseExpectation_Call struct {
	*mock.Call
}

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

func (*MockMaker_MakeResponseExpectation_Call) Return

func (*MockMaker_MakeResponseExpectation_Call) Run

Jump to

Keyboard shortcuts

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