Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: Apache-2.0, 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 RetryHandler

type RetryHandler struct {
	mock.Mock
}

RetryHandler is an autogenerated mock type for the RetryHandler type

func NewRetryHandler

func NewRetryHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *RetryHandler

NewRetryHandler creates a new instance of RetryHandler. 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 (*RetryHandler) Delay

func (_m *RetryHandler) Delay(attempt int) time.Duration

Delay provides a mock function with given fields: attempt

func (*RetryHandler) EXPECT

func (_m *RetryHandler) EXPECT() *RetryHandler_Expecter

func (*RetryHandler) MustExecuteAttempt

func (_m *RetryHandler) MustExecuteAttempt(attempt int) bool

MustExecuteAttempt provides a mock function with given fields: attempt

func (*RetryHandler) String

func (_m *RetryHandler) String() string

String provides a mock function with no fields

func (*RetryHandler) StringAttempt

func (_m *RetryHandler) StringAttempt(attempt int) string

StringAttempt provides a mock function with given fields: attempt

func (*RetryHandler) Validate

func (_m *RetryHandler) Validate() error

Validate provides a mock function with no fields

type RetryHandler_Delay_Call

type RetryHandler_Delay_Call struct {
	*mock.Call
}

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

func (*RetryHandler_Delay_Call) Return

func (*RetryHandler_Delay_Call) Run

func (_c *RetryHandler_Delay_Call) Run(run func(attempt int)) *RetryHandler_Delay_Call

func (*RetryHandler_Delay_Call) RunAndReturn

func (_c *RetryHandler_Delay_Call) RunAndReturn(run func(int) time.Duration) *RetryHandler_Delay_Call

type RetryHandler_Expecter

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

func (*RetryHandler_Expecter) Delay

func (_e *RetryHandler_Expecter) Delay(attempt interface{}) *RetryHandler_Delay_Call

Delay is a helper method to define mock.On call

  • attempt int

func (*RetryHandler_Expecter) MustExecuteAttempt

func (_e *RetryHandler_Expecter) MustExecuteAttempt(attempt interface{}) *RetryHandler_MustExecuteAttempt_Call

MustExecuteAttempt is a helper method to define mock.On call

  • attempt int

func (*RetryHandler_Expecter) String

String is a helper method to define mock.On call

func (*RetryHandler_Expecter) StringAttempt

func (_e *RetryHandler_Expecter) StringAttempt(attempt interface{}) *RetryHandler_StringAttempt_Call

StringAttempt is a helper method to define mock.On call

  • attempt int

func (*RetryHandler_Expecter) Validate

Validate is a helper method to define mock.On call

type RetryHandler_MustExecuteAttempt_Call

type RetryHandler_MustExecuteAttempt_Call struct {
	*mock.Call
}

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

func (*RetryHandler_MustExecuteAttempt_Call) Return

func (*RetryHandler_MustExecuteAttempt_Call) Run

func (*RetryHandler_MustExecuteAttempt_Call) RunAndReturn

type RetryHandler_StringAttempt_Call

type RetryHandler_StringAttempt_Call struct {
	*mock.Call
}

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

func (*RetryHandler_StringAttempt_Call) Return

func (*RetryHandler_StringAttempt_Call) Run

func (*RetryHandler_StringAttempt_Call) RunAndReturn

type RetryHandler_String_Call

type RetryHandler_String_Call struct {
	*mock.Call
}

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

func (*RetryHandler_String_Call) Return

func (*RetryHandler_String_Call) Run

func (*RetryHandler_String_Call) RunAndReturn

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

type RetryHandler_Validate_Call

type RetryHandler_Validate_Call struct {
	*mock.Call
}

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

func (*RetryHandler_Validate_Call) Return

func (*RetryHandler_Validate_Call) Run

func (*RetryHandler_Validate_Call) RunAndReturn

func (_c *RetryHandler_Validate_Call) RunAndReturn(run func() error) *RetryHandler_Validate_Call

type RetryPolicyConfigurer

type RetryPolicyConfigurer struct {
	mock.Mock
}

RetryPolicyConfigurer is an autogenerated mock type for the RetryPolicyConfigurer type

func NewRetryPolicyConfigurer

func NewRetryPolicyConfigurer(t interface {
	mock.TestingT
	Cleanup(func())
}) *RetryPolicyConfigurer

NewRetryPolicyConfigurer creates a new instance of RetryPolicyConfigurer. 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 (*RetryPolicyConfigurer) Brief

func (_m *RetryPolicyConfigurer) Brief() string

Brief provides a mock function with no fields

func (*RetryPolicyConfigurer) EXPECT

func (*RetryPolicyConfigurer) NewRetryHandler

func (_m *RetryPolicyConfigurer) NewRetryHandler() (types.RetryHandler, error)

NewRetryHandler provides a mock function with no fields

func (*RetryPolicyConfigurer) String

func (_m *RetryPolicyConfigurer) String() string

String provides a mock function with no fields

func (*RetryPolicyConfigurer) Validate

func (_m *RetryPolicyConfigurer) Validate() error

Validate provides a mock function with no fields

type RetryPolicyConfigurer_Brief_Call

type RetryPolicyConfigurer_Brief_Call struct {
	*mock.Call
}

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

func (*RetryPolicyConfigurer_Brief_Call) Return

func (*RetryPolicyConfigurer_Brief_Call) Run

func (*RetryPolicyConfigurer_Brief_Call) RunAndReturn

type RetryPolicyConfigurer_Expecter

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

func (*RetryPolicyConfigurer_Expecter) Brief

Brief is a helper method to define mock.On call

func (*RetryPolicyConfigurer_Expecter) NewRetryHandler

NewRetryHandler is a helper method to define mock.On call

func (*RetryPolicyConfigurer_Expecter) String

String is a helper method to define mock.On call

func (*RetryPolicyConfigurer_Expecter) Validate

Validate is a helper method to define mock.On call

type RetryPolicyConfigurer_NewRetryHandler_Call

type RetryPolicyConfigurer_NewRetryHandler_Call struct {
	*mock.Call
}

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

func (*RetryPolicyConfigurer_NewRetryHandler_Call) Return

func (*RetryPolicyConfigurer_NewRetryHandler_Call) Run

func (*RetryPolicyConfigurer_NewRetryHandler_Call) RunAndReturn

type RetryPolicyConfigurer_String_Call

type RetryPolicyConfigurer_String_Call struct {
	*mock.Call
}

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

func (*RetryPolicyConfigurer_String_Call) Return

func (*RetryPolicyConfigurer_String_Call) Run

func (*RetryPolicyConfigurer_String_Call) RunAndReturn

type RetryPolicyConfigurer_Validate_Call

type RetryPolicyConfigurer_Validate_Call struct {
	*mock.Call
}

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

func (*RetryPolicyConfigurer_Validate_Call) Return

func (*RetryPolicyConfigurer_Validate_Call) Run

func (*RetryPolicyConfigurer_Validate_Call) RunAndReturn

Jump to

Keyboard shortcuts

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