Documentation ¶
Index ¶
- type Service
- type Service_Expecter
- type Service_SendEvent_Call
- func (_c *Service_SendEvent_Call) Return(_a0 error) *Service_SendEvent_Call
- func (_c *Service_SendEvent_Call) Run(run func(event string, status string, details json.RawMessage)) *Service_SendEvent_Call
- func (_c *Service_SendEvent_Call) RunAndReturn(run func(string, string, json.RawMessage) error) *Service_SendEvent_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
Service is an autogenerated mock type for the Service type
func NewService ¶
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
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
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 (_c *Service_SendEvent_Call) Return(_a0 error) *Service_SendEvent_Call
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
func (_c *Service_SendEvent_Call) RunAndReturn(run func(string, string, json.RawMessage) error) *Service_SendEvent_Call
Click to show internal directories.
Click to hide internal directories.