mocks

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sender

type Sender struct {
	mock.Mock
}

Sender is an autogenerated mock type for the Sender type

func NewSender

func NewSender(t interface {
	mock.TestingT
	Cleanup(func())
}) *Sender

NewSender creates a new instance of Sender. 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 (*Sender) Send

func (_m *Sender) Send(hdr *frame.Header, msg message.Message)

Send provides a mock function with given fields: hdr, msg

type SpannerClientInterface

type SpannerClientInterface struct {
	mock.Mock
}

SpannerClientInterface is an autogenerated mock type for the SpannerClientInterface type

func NewSpannerClientInterface

func NewSpannerClientInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *SpannerClientInterface

NewSpannerClientInterface creates a new instance of SpannerClientInterface. 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 (*SpannerClientInterface) GetClient

func (_m *SpannerClientInterface) GetClient(ctx context.Context) (*spanner.Client, error)

GetClient provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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