mocks

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 License: MIT Imports: 5 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) EXPECT

func (*ChipIngressClient) Ping

Ping provides a mock function with given fields: ctx, in, opts

func (*ChipIngressClient) Publish

Publish provides a mock function with given fields: ctx, in, opts

func (*ChipIngressClient) PublishBatch

func (_m *ChipIngressClient) PublishBatch(ctx context.Context, in *pb.CloudEventBatch, opts ...grpc.CallOption) (*pb.PublishResponse, error)

PublishBatch provides a mock function with given fields: ctx, in, opts

func (*ChipIngressClient) StreamEvents added in v0.7.1

StreamEvents provides a mock function with given fields: ctx, opts

type ChipIngressClient_Expecter

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

func (*ChipIngressClient_Expecter) Ping

func (_e *ChipIngressClient_Expecter) Ping(ctx interface{}, in interface{}, opts ...interface{}) *ChipIngressClient_Ping_Call

Ping is a helper method to define mock.On call

  • ctx context.Context
  • in *pb.EmptyRequest
  • opts ...grpc.CallOption

func (*ChipIngressClient_Expecter) Publish

func (_e *ChipIngressClient_Expecter) Publish(ctx interface{}, in interface{}, opts ...interface{}) *ChipIngressClient_Publish_Call

Publish is a helper method to define mock.On call

  • ctx context.Context
  • in *v2pb.CloudEvent
  • opts ...grpc.CallOption

func (*ChipIngressClient_Expecter) PublishBatch

func (_e *ChipIngressClient_Expecter) PublishBatch(ctx interface{}, in interface{}, opts ...interface{}) *ChipIngressClient_PublishBatch_Call

PublishBatch is a helper method to define mock.On call

  • ctx context.Context
  • in *pb.CloudEventBatch
  • opts ...grpc.CallOption

func (*ChipIngressClient_Expecter) StreamEvents added in v0.7.1

func (_e *ChipIngressClient_Expecter) StreamEvents(ctx interface{}, opts ...interface{}) *ChipIngressClient_StreamEvents_Call

StreamEvents is a helper method to define mock.On call

  • ctx context.Context
  • opts ...grpc.CallOption

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

type ChipIngressClient_StreamEvents_Call added in v0.7.1

type ChipIngressClient_StreamEvents_Call struct {
	*mock.Call
}

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

func (*ChipIngressClient_StreamEvents_Call) Return added in v0.7.1

func (*ChipIngressClient_StreamEvents_Call) Run added in v0.7.1

Jump to

Keyboard shortcuts

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