fake

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockEventHandler added in v0.0.8

type MockEventHandler struct {
	mock.Mock
}

MockEventHandler is an autogenerated mock type for the EventHandler type

func NewMockEventHandler added in v0.0.8

func NewMockEventHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEventHandler

NewMockEventHandler creates a new instance of MockEventHandler. 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 (*MockEventHandler) EXPECT added in v0.0.8

func (*MockEventHandler) HandleFakeEvent added in v0.0.8

func (_m *MockEventHandler) HandleFakeEvent(ctx context.Context, e fake.Event) errors.ProcessingError

HandleFakeEvent provides a mock function with given fields: ctx, e

type MockEventHandler_Expecter added in v0.0.8

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

func (*MockEventHandler_Expecter) HandleFakeEvent added in v0.0.8

func (_e *MockEventHandler_Expecter) HandleFakeEvent(ctx interface{}, e interface{}) *MockEventHandler_HandleFakeEvent_Call

HandleFakeEvent is a helper method to define mock.On call

  • ctx context.Context
  • e fake.Event

type MockEventHandler_HandleFakeEvent_Call added in v0.0.8

type MockEventHandler_HandleFakeEvent_Call struct {
	*mock.Call
}

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

func (*MockEventHandler_HandleFakeEvent_Call) Return added in v0.0.8

func (*MockEventHandler_HandleFakeEvent_Call) Run added in v0.0.8

func (*MockEventHandler_HandleFakeEvent_Call) RunAndReturn added in v0.0.8

Jump to

Keyboard shortcuts

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