Documentation
¶
Index ¶
- type ErrorRegistry
- type ErrorRegistry_Expecter
- type ErrorRegistry_Lookup_Call
- func (_c *ErrorRegistry_Lookup_Call) Return(result errmap.Result, b bool) *ErrorRegistry_Lookup_Call
- func (_c *ErrorRegistry_Lookup_Call) Run(run func(err error)) *ErrorRegistry_Lookup_Call
- func (_c *ErrorRegistry_Lookup_Call) RunAndReturn(run func(err error) (errmap.Result, bool)) *ErrorRegistry_Lookup_Call
- type ErrorRegistry_Register_Call
- func (_c *ErrorRegistry_Register_Call) Return() *ErrorRegistry_Register_Call
- func (_c *ErrorRegistry_Register_Call) Run(run func(err error, status int, response errorResponses.ErrorResponse)) *ErrorRegistry_Register_Call
- func (_c *ErrorRegistry_Register_Call) RunAndReturn(run func(err error, status int, response errorResponses.ErrorResponse)) *ErrorRegistry_Register_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorRegistry ¶
ErrorRegistry is an autogenerated mock type for the ErrorRegistry type
func NewErrorRegistry ¶
func NewErrorRegistry(t interface {
mock.TestingT
Cleanup(func())
}) *ErrorRegistry
NewErrorRegistry creates a new instance of ErrorRegistry. 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 (*ErrorRegistry) EXPECT ¶
func (_m *ErrorRegistry) EXPECT() *ErrorRegistry_Expecter
func (*ErrorRegistry) Lookup ¶
func (_mock *ErrorRegistry) Lookup(err error) (errmap.Result, bool)
Lookup provides a mock function for the type ErrorRegistry
func (*ErrorRegistry) Register ¶
func (_mock *ErrorRegistry) Register(err error, status int, response errorResponses.ErrorResponse)
Register provides a mock function for the type ErrorRegistry
type ErrorRegistry_Expecter ¶
type ErrorRegistry_Expecter struct {
// contains filtered or unexported fields
}
func (*ErrorRegistry_Expecter) Lookup ¶
func (_e *ErrorRegistry_Expecter) Lookup(err interface{}) *ErrorRegistry_Lookup_Call
Lookup is a helper method to define mock.On call
- err error
func (*ErrorRegistry_Expecter) Register ¶
func (_e *ErrorRegistry_Expecter) Register(err interface{}, status interface{}, response interface{}) *ErrorRegistry_Register_Call
Register is a helper method to define mock.On call
- err error
- status int
- response errorResponses.ErrorResponse
type ErrorRegistry_Lookup_Call ¶
ErrorRegistry_Lookup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Lookup'
func (*ErrorRegistry_Lookup_Call) Return ¶
func (_c *ErrorRegistry_Lookup_Call) Return(result errmap.Result, b bool) *ErrorRegistry_Lookup_Call
func (*ErrorRegistry_Lookup_Call) Run ¶
func (_c *ErrorRegistry_Lookup_Call) Run(run func(err error)) *ErrorRegistry_Lookup_Call
func (*ErrorRegistry_Lookup_Call) RunAndReturn ¶
func (_c *ErrorRegistry_Lookup_Call) RunAndReturn(run func(err error) (errmap.Result, bool)) *ErrorRegistry_Lookup_Call
type ErrorRegistry_Register_Call ¶
ErrorRegistry_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'
func (*ErrorRegistry_Register_Call) Return ¶
func (_c *ErrorRegistry_Register_Call) Return() *ErrorRegistry_Register_Call
func (*ErrorRegistry_Register_Call) Run ¶
func (_c *ErrorRegistry_Register_Call) Run(run func(err error, status int, response errorResponses.ErrorResponse)) *ErrorRegistry_Register_Call
func (*ErrorRegistry_Register_Call) RunAndReturn ¶
func (_c *ErrorRegistry_Register_Call) RunAndReturn(run func(err error, status int, response errorResponses.ErrorResponse)) *ErrorRegistry_Register_Call