mocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService

func NewService(t interface {
	mock.TestingT
	Cleanup(func())
}) *Service

NewService creates a new instance of Service. 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 (*Service) EXPECT added in v0.4.0

func (_m *Service) EXPECT() *Service_Expecter

func (*Service) SendEvent

func (_m *Service) SendEvent(event string, status string, details json.RawMessage) error

SendEvent provides a mock function with given fields: event, status, details

type Service_Expecter added in v0.4.0

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

func (*Service_Expecter) SendEvent added in v0.4.0

func (_e *Service_Expecter) SendEvent(event interface{}, status interface{}, details interface{}) *Service_SendEvent_Call

SendEvent is a helper method to define mock.On call

  • event string
  • status string
  • details json.RawMessage

type Service_SendEvent_Call added in v0.4.0

type Service_SendEvent_Call struct {
	*mock.Call
}

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

func (*Service_SendEvent_Call) Return added in v0.4.0

func (*Service_SendEvent_Call) Run added in v0.4.0

func (_c *Service_SendEvent_Call) Run(run func(event string, status string, details json.RawMessage)) *Service_SendEvent_Call

func (*Service_SendEvent_Call) RunAndReturn added in v0.4.0

Jump to

Keyboard shortcuts

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