mocks

package
v0.26.5 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 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 Executor

type Executor struct {
	mock.Mock
}

Executor is an autogenerated mock type for the Executor type

func NewExecutor

func NewExecutor(t interface {
	mock.TestingT
	Cleanup(func())
}) *Executor

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

func (_m *Executor) EXPECT() *Executor_Expecter

func (*Executor) Execute

func (_m *Executor) Execute(ctx context.Context, f aws.RequestFunction) (interface{}, error)

Execute provides a mock function with given fields: ctx, f

type Executor_Execute_Call

type Executor_Execute_Call struct {
	*mock.Call
}

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

func (*Executor_Execute_Call) Return

func (_c *Executor_Execute_Call) Return(_a0 interface{}, _a1 error) *Executor_Execute_Call

func (*Executor_Execute_Call) Run

func (*Executor_Execute_Call) RunAndReturn

func (_c *Executor_Execute_Call) RunAndReturn(run func(context.Context, aws.RequestFunction) (interface{}, error)) *Executor_Execute_Call

type Executor_Expecter

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

func (*Executor_Expecter) Execute

func (_e *Executor_Expecter) Execute(ctx interface{}, f interface{}) *Executor_Execute_Call

Execute is a helper method to define mock.On call

  • ctx context.Context
  • f aws.RequestFunction

Jump to

Keyboard shortcuts

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