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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AMQPPublisher

type AMQPPublisher struct {
	mock.Mock
}

AMQPPublisher is an autogenerated mock type for the AMQPPublisher type

func NewAMQPPublisher

func NewAMQPPublisher(t mockConstructorTestingTNewAMQPPublisher) *AMQPPublisher

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

func (*AMQPPublisher) EXPECT

func (_m *AMQPPublisher) EXPECT() *AMQPPublisher_Expecter

func (*AMQPPublisher) Publish

func (_m *AMQPPublisher) Publish(ctx context.Context, data interface{}, routingKey string) error

Publish provides a mock function with given fields: ctx, data, routingKey

type AMQPPublisher_Expecter

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

func (*AMQPPublisher_Expecter) Publish

func (_e *AMQPPublisher_Expecter) Publish(ctx interface{}, data interface{}, routingKey interface{}) *AMQPPublisher_Publish_Call

Publish is a helper method to define mock.On call

  • ctx context.Context
  • data interface{}
  • routingKey string

type AMQPPublisher_Publish_Call

type AMQPPublisher_Publish_Call struct {
	*mock.Call
}

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

func (*AMQPPublisher_Publish_Call) Return

func (*AMQPPublisher_Publish_Call) Run

func (_c *AMQPPublisher_Publish_Call) Run(run func(ctx context.Context, data interface{}, routingKey string)) *AMQPPublisher_Publish_Call

Jump to

Keyboard shortcuts

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