mocks

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChipIngressClient

type ChipIngressClient struct {
	mock.Mock
}

ChipIngressClient is an autogenerated mock type for the ChipIngressClient type

func NewChipIngressClient

func NewChipIngressClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *ChipIngressClient

NewChipIngressClient creates a new instance of ChipIngressClient. 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 (*ChipIngressClient) Close

func (_m *ChipIngressClient) Close() error

Close provides a mock function with no fields

func (*ChipIngressClient) EXPECT

func (*ChipIngressClient) Ping

func (_m *ChipIngressClient) Ping(ctx context.Context) (string, error)

Ping provides a mock function with given fields: ctx

func (*ChipIngressClient) Publish

func (_m *ChipIngressClient) Publish(ctx context.Context, _a1 event.Event) (*pb.PublishResponse, error)

Publish provides a mock function with given fields: ctx, _a1

func (*ChipIngressClient) PublishBatch

func (_m *ChipIngressClient) PublishBatch(ctx context.Context, events []event.Event) (*pb.PublishResponse, error)

PublishBatch provides a mock function with given fields: ctx, events

type ChipIngressClient_Close_Call

type ChipIngressClient_Close_Call struct {
	*mock.Call
}

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

func (*ChipIngressClient_Close_Call) Return

func (*ChipIngressClient_Close_Call) Run

func (*ChipIngressClient_Close_Call) RunAndReturn

func (_c *ChipIngressClient_Close_Call) RunAndReturn(run func() error) *ChipIngressClient_Close_Call

type ChipIngressClient_Expecter

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

func (*ChipIngressClient_Expecter) Close

Close is a helper method to define mock.On call

func (*ChipIngressClient_Expecter) Ping

func (_e *ChipIngressClient_Expecter) Ping(ctx interface{}) *ChipIngressClient_Ping_Call

Ping is a helper method to define mock.On call

  • ctx context.Context

func (*ChipIngressClient_Expecter) Publish

func (_e *ChipIngressClient_Expecter) Publish(ctx interface{}, _a1 interface{}) *ChipIngressClient_Publish_Call

Publish is a helper method to define mock.On call

  • ctx context.Context
  • _a1 event.Event

func (*ChipIngressClient_Expecter) PublishBatch

func (_e *ChipIngressClient_Expecter) PublishBatch(ctx interface{}, events interface{}) *ChipIngressClient_PublishBatch_Call

PublishBatch is a helper method to define mock.On call

  • ctx context.Context
  • events []event.Event

type ChipIngressClient_Ping_Call

type ChipIngressClient_Ping_Call struct {
	*mock.Call
}

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

func (*ChipIngressClient_Ping_Call) Return

func (*ChipIngressClient_Ping_Call) Run

func (*ChipIngressClient_Ping_Call) RunAndReturn

type ChipIngressClient_PublishBatch_Call

type ChipIngressClient_PublishBatch_Call struct {
	*mock.Call
}

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

func (*ChipIngressClient_PublishBatch_Call) Return

func (*ChipIngressClient_PublishBatch_Call) Run

func (*ChipIngressClient_PublishBatch_Call) RunAndReturn

type ChipIngressClient_Publish_Call

type ChipIngressClient_Publish_Call struct {
	*mock.Call
}

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

func (*ChipIngressClient_Publish_Call) Return

func (*ChipIngressClient_Publish_Call) Run

func (*ChipIngressClient_Publish_Call) RunAndReturn

Jump to

Keyboard shortcuts

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