mockopscope

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 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 Scope

type Scope struct {
	mock.Mock
}

Scope is an autogenerated mock type for the Scope type

func NewScope

func NewScope(t interface {
	mock.TestingT
	Cleanup(func())
}) *Scope

NewScope creates a new instance of Scope. 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 (*Scope) Begin

func (_m *Scope) Begin(ctx context.Context) (context.Context, error)

Begin provides a mock function with given fields: ctx

func (*Scope) EXPECT

func (_m *Scope) EXPECT() *Scope_Expecter

func (*Scope) End

func (_m *Scope) End(ctx context.Context, err error) error

End provides a mock function with given fields: ctx, err

func (*Scope) EndWithRecover

func (_m *Scope) EndWithRecover(ctx context.Context, err *error)

EndWithRecover provides a mock function with given fields: ctx, err

type Scope_Begin_Call

type Scope_Begin_Call struct {
	*mock.Call
}

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

func (*Scope_Begin_Call) Return

func (_c *Scope_Begin_Call) Return(_a0 context.Context, _a1 error) *Scope_Begin_Call

func (*Scope_Begin_Call) Run

func (_c *Scope_Begin_Call) Run(run func(ctx context.Context)) *Scope_Begin_Call

func (*Scope_Begin_Call) RunAndReturn

func (_c *Scope_Begin_Call) RunAndReturn(run func(context.Context) (context.Context, error)) *Scope_Begin_Call

type Scope_EndWithRecover_Call

type Scope_EndWithRecover_Call struct {
	*mock.Call
}

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

func (*Scope_EndWithRecover_Call) Return

func (*Scope_EndWithRecover_Call) Run

func (*Scope_EndWithRecover_Call) RunAndReturn

type Scope_End_Call

type Scope_End_Call struct {
	*mock.Call
}

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

func (*Scope_End_Call) Return

func (_c *Scope_End_Call) Return(_a0 error) *Scope_End_Call

func (*Scope_End_Call) Run

func (_c *Scope_End_Call) Run(run func(ctx context.Context, err error)) *Scope_End_Call

func (*Scope_End_Call) RunAndReturn

func (_c *Scope_End_Call) RunAndReturn(run func(context.Context, error) error) *Scope_End_Call

type Scope_Expecter

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

func (*Scope_Expecter) Begin

func (_e *Scope_Expecter) Begin(ctx interface{}) *Scope_Begin_Call

Begin is a helper method to define mock.On call

  • ctx context.Context

func (*Scope_Expecter) End

func (_e *Scope_Expecter) End(ctx interface{}, err interface{}) *Scope_End_Call

End is a helper method to define mock.On call

  • ctx context.Context
  • err error

func (*Scope_Expecter) EndWithRecover

func (_e *Scope_Expecter) EndWithRecover(ctx interface{}, err interface{}) *Scope_EndWithRecover_Call

EndWithRecover is a helper method to define mock.On call

  • ctx context.Context
  • err *error

Jump to

Keyboard shortcuts

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