mocks

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockErrorHandler

type MockErrorHandler struct {
	mock.Mock
}

MockErrorHandler is an autogenerated mock type for the ErrorHandler type

func NewMockErrorHandler

func NewMockErrorHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockErrorHandler

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

func (*MockErrorHandler) Error

func (_mock *MockErrorHandler) Error(ctx context.Context, err error, opts ...errorhandling.ReportOption)

Error provides a mock function for the type MockErrorHandler

func (*MockErrorHandler) Fatal

func (_mock *MockErrorHandler) Fatal(ctx context.Context, err error, opts ...errorhandling.ReportOption) int

Fatal provides a mock function for the type MockErrorHandler

func (*MockErrorHandler) SetUsage

func (_mock *MockErrorHandler) SetUsage(usage func() error)

SetUsage provides a mock function for the type MockErrorHandler

func (*MockErrorHandler) Warn

func (_mock *MockErrorHandler) Warn(ctx context.Context, err error, opts ...errorhandling.ReportOption)

Warn provides a mock function for the type MockErrorHandler

type MockErrorHandler_Error_Call

type MockErrorHandler_Error_Call struct {
	*mock.Call
}

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

func (*MockErrorHandler_Error_Call) Return

func (*MockErrorHandler_Error_Call) Run

func (*MockErrorHandler_Error_Call) RunAndReturn

type MockErrorHandler_Expecter

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

func (*MockErrorHandler_Expecter) Error

func (_e *MockErrorHandler_Expecter) Error(ctx any, err any, opts ...any) *MockErrorHandler_Error_Call

Error is a helper method to define mock.On call

  • ctx context.Context
  • err error
  • opts ...errorhandling.ReportOption

func (*MockErrorHandler_Expecter) Fatal

func (_e *MockErrorHandler_Expecter) Fatal(ctx any, err any, opts ...any) *MockErrorHandler_Fatal_Call

Fatal is a helper method to define mock.On call

  • ctx context.Context
  • err error
  • opts ...errorhandling.ReportOption

func (*MockErrorHandler_Expecter) SetUsage

SetUsage is a helper method to define mock.On call

  • usage func() error

func (*MockErrorHandler_Expecter) Warn

func (_e *MockErrorHandler_Expecter) Warn(ctx any, err any, opts ...any) *MockErrorHandler_Warn_Call

Warn is a helper method to define mock.On call

  • ctx context.Context
  • err error
  • opts ...errorhandling.ReportOption

type MockErrorHandler_Fatal_Call

type MockErrorHandler_Fatal_Call struct {
	*mock.Call
}

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

func (*MockErrorHandler_Fatal_Call) Return

func (*MockErrorHandler_Fatal_Call) Run

func (*MockErrorHandler_Fatal_Call) RunAndReturn

type MockErrorHandler_SetUsage_Call

type MockErrorHandler_SetUsage_Call struct {
	*mock.Call
}

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

func (*MockErrorHandler_SetUsage_Call) Return

func (*MockErrorHandler_SetUsage_Call) Run

func (_c *MockErrorHandler_SetUsage_Call) Run(run func(usage func() error)) *MockErrorHandler_SetUsage_Call

func (*MockErrorHandler_SetUsage_Call) RunAndReturn

func (_c *MockErrorHandler_SetUsage_Call) RunAndReturn(run func(usage func() error)) *MockErrorHandler_SetUsage_Call

type MockErrorHandler_Warn_Call

type MockErrorHandler_Warn_Call struct {
	*mock.Call
}

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

func (*MockErrorHandler_Warn_Call) Return

func (*MockErrorHandler_Warn_Call) Run

func (*MockErrorHandler_Warn_Call) RunAndReturn

type MockHelpConfig

type MockHelpConfig struct {
	mock.Mock
}

MockHelpConfig is an autogenerated mock type for the HelpConfig type

func NewMockHelpConfig

func NewMockHelpConfig(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockHelpConfig

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

func (*MockHelpConfig) SupportMessage

func (_mock *MockHelpConfig) SupportMessage() string

SupportMessage provides a mock function for the type MockHelpConfig

type MockHelpConfig_Expecter

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

func (*MockHelpConfig_Expecter) SupportMessage

SupportMessage is a helper method to define mock.On call

type MockHelpConfig_SupportMessage_Call

type MockHelpConfig_SupportMessage_Call struct {
	*mock.Call
}

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

func (*MockHelpConfig_SupportMessage_Call) Return

func (*MockHelpConfig_SupportMessage_Call) Run

func (*MockHelpConfig_SupportMessage_Call) RunAndReturn

Jump to

Keyboard shortcuts

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