mocks

package
v0.0.0-...-ea72055 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2023 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 Worker

type Worker struct {
	mock.Mock
}

Worker is an autogenerated mock type for the Worker type

func NewWorker

func NewWorker(t interface {
	mock.TestingT
	Cleanup(func())
}) *Worker

NewWorker creates a new instance of Worker. 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 (*Worker) Do

func (_m *Worker) Do(_a0 worker.Request)

Do provides a mock function with given fields: _a0

func (*Worker) EXPECT

func (_m *Worker) EXPECT() *Worker_Expecter

type Worker_Do_Call

type Worker_Do_Call struct {
	*mock.Call
}

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

func (*Worker_Do_Call) Return

func (_c *Worker_Do_Call) Return() *Worker_Do_Call

func (*Worker_Do_Call) Run

func (_c *Worker_Do_Call) Run(run func(_a0 worker.Request)) *Worker_Do_Call

func (*Worker_Do_Call) RunAndReturn

func (_c *Worker_Do_Call) RunAndReturn(run func(worker.Request)) *Worker_Do_Call

type Worker_Expecter

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

func (*Worker_Expecter) Do

func (_e *Worker_Expecter) Do(_a0 interface{}) *Worker_Do_Call

Do is a helper method to define mock.On call

  • _a0 worker.Request

Jump to

Keyboard shortcuts

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