mocks

package
v0.0.0-...-d389d3b Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 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 Consumer

type Consumer struct {
	mock.Mock
}

Consumer is an autogenerated mock type for the Consumer type

func NewConsumer

func NewConsumer(t mockConstructorTestingTNewConsumer) *Consumer

NewConsumer creates a new instance of Consumer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Consumer) Consume

func (_m *Consumer) Consume(ctx context.Context, runner rabbitmq.ConsumerRunner)

Consume provides a mock function with given fields: ctx, runner

func (*Consumer) EXPECT

func (_m *Consumer) EXPECT() *Consumer_Expecter

type ConsumerRunner

type ConsumerRunner struct {
	mock.Mock
}

ConsumerRunner is an autogenerated mock type for the ConsumerRunner type

func NewConsumerRunner

func NewConsumerRunner(t mockConstructorTestingTNewConsumerRunner) *ConsumerRunner

NewConsumerRunner creates a new instance of ConsumerRunner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ConsumerRunner) Do

func (_m *ConsumerRunner) Do(ctx context.Context)

Do provides a mock function with given fields: ctx

func (*ConsumerRunner) EXPECT

func (*ConsumerRunner) Options

Options provides a mock function with given fields:

func (*ConsumerRunner) Run

func (_m *ConsumerRunner) Run(ctx context.Context)

Run provides a mock function with given fields: ctx

type ConsumerRunner_Do_Call

type ConsumerRunner_Do_Call struct {
	*mock.Call
}

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

func (*ConsumerRunner_Do_Call) Return

func (*ConsumerRunner_Do_Call) Run

type ConsumerRunner_Expecter

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

func (*ConsumerRunner_Expecter) Do

func (_e *ConsumerRunner_Expecter) Do(ctx interface{}) *ConsumerRunner_Do_Call

Do is a helper method to define mock.On call

  • ctx context.Context

func (*ConsumerRunner_Expecter) Options

Options is a helper method to define mock.On call

func (*ConsumerRunner_Expecter) Run

func (_e *ConsumerRunner_Expecter) Run(ctx interface{}) *ConsumerRunner_Run_Call

Run is a helper method to define mock.On call

  • ctx context.Context

type ConsumerRunner_Options_Call

type ConsumerRunner_Options_Call struct {
	*mock.Call
}

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

func (*ConsumerRunner_Options_Call) Return

func (*ConsumerRunner_Options_Call) Run

type ConsumerRunner_Run_Call

type ConsumerRunner_Run_Call struct {
	*mock.Call
}

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

func (*ConsumerRunner_Run_Call) Return

func (*ConsumerRunner_Run_Call) Run

type Consumer_Consume_Call

type Consumer_Consume_Call struct {
	*mock.Call
}

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

func (*Consumer_Consume_Call) Return

func (*Consumer_Consume_Call) Run

type Consumer_Expecter

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

func (*Consumer_Expecter) Consume

func (_e *Consumer_Expecter) Consume(ctx interface{}, runner interface{}) *Consumer_Consume_Call

Consume is a helper method to define mock.On call

  • ctx context.Context
  • runner rabbitmq.ConsumerRunner

Jump to

Keyboard shortcuts

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