errors

package
v1.15.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	mock.Mock
}

Error is an autogenerated mock type for the Error type

func NewError

func NewError(t interface {
	mock.TestingT
	Cleanup(func())
}) *Error

NewError creates a new instance of Error. 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 (*Error) Args

func (_m *Error) Args(_a0 ...interface{}) errors.Error

Args provides a mock function with given fields: _a0

func (*Error) EXPECT

func (_m *Error) EXPECT() *Error_Expecter

func (*Error) Error

func (_m *Error) Error() string

Error provides a mock function with no fields

func (*Error) SetModule

func (_m *Error) SetModule(_a0 string) errors.Error

SetModule provides a mock function with given fields: _a0

type Error_Args_Call

type Error_Args_Call struct {
	*mock.Call
}

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

func (*Error_Args_Call) Return

func (_c *Error_Args_Call) Return(_a0 errors.Error) *Error_Args_Call

func (*Error_Args_Call) Run

func (_c *Error_Args_Call) Run(run func(_a0 ...interface{})) *Error_Args_Call

func (*Error_Args_Call) RunAndReturn

func (_c *Error_Args_Call) RunAndReturn(run func(...interface{}) errors.Error) *Error_Args_Call

type Error_Error_Call

type Error_Error_Call struct {
	*mock.Call
}

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

func (*Error_Error_Call) Return

func (_c *Error_Error_Call) Return(_a0 string) *Error_Error_Call

func (*Error_Error_Call) Run

func (_c *Error_Error_Call) Run(run func()) *Error_Error_Call

func (*Error_Error_Call) RunAndReturn

func (_c *Error_Error_Call) RunAndReturn(run func() string) *Error_Error_Call

type Error_Expecter

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

func (*Error_Expecter) Args

func (_e *Error_Expecter) Args(_a0 ...interface{}) *Error_Args_Call

Args is a helper method to define mock.On call

  • _a0 ...interface{}

func (*Error_Expecter) Error

func (_e *Error_Expecter) Error() *Error_Error_Call

Error is a helper method to define mock.On call

func (*Error_Expecter) SetModule

func (_e *Error_Expecter) SetModule(_a0 interface{}) *Error_SetModule_Call

SetModule is a helper method to define mock.On call

  • _a0 string

type Error_SetModule_Call

type Error_SetModule_Call struct {
	*mock.Call
}

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

func (*Error_SetModule_Call) Return

func (*Error_SetModule_Call) Run

func (_c *Error_SetModule_Call) Run(run func(_a0 string)) *Error_SetModule_Call

func (*Error_SetModule_Call) RunAndReturn

func (_c *Error_SetModule_Call) RunAndReturn(run func(string) errors.Error) *Error_SetModule_Call

Jump to

Keyboard shortcuts

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