-
Notifications
You must be signed in to change notification settings - Fork 22
/
event_service_mock.go
58 lines (49 loc) · 2 KB
/
event_service_mock.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Code generated by MockGen. DO NOT EDIT.
// Source: code.vegaprotocol.io/vega/core/api (interfaces: EventService)
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
events "code.vegaprotocol.io/vega/core/events"
subscribers "code.vegaprotocol.io/vega/libs/subscribers"
v1 "code.vegaprotocol.io/vega/protos/vega/events/v1"
gomock "github.com/golang/mock/gomock"
)
// MockEventService is a mock of EventService interface.
type MockEventService struct {
ctrl *gomock.Controller
recorder *MockEventServiceMockRecorder
}
// MockEventServiceMockRecorder is the mock recorder for MockEventService.
type MockEventServiceMockRecorder struct {
mock *MockEventService
}
// NewMockEventService creates a new mock instance.
func NewMockEventService(ctrl *gomock.Controller) *MockEventService {
mock := &MockEventService{ctrl: ctrl}
mock.recorder = &MockEventServiceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockEventService) EXPECT() *MockEventServiceMockRecorder {
return m.recorder
}
// ObserveEvents mocks base method.
func (m *MockEventService) ObserveEvents(arg0 context.Context, arg1 int, arg2 []events.Type, arg3 int, arg4 ...subscribers.EventFilter) (<-chan []*v1.BusEvent, chan<- int) {
m.ctrl.T.Helper()
varargs := []interface{}{arg0, arg1, arg2, arg3}
for _, a := range arg4 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "ObserveEvents", varargs...)
ret0, _ := ret[0].(<-chan []*v1.BusEvent)
ret1, _ := ret[1].(chan<- int)
return ret0, ret1
}
// ObserveEvents indicates an expected call of ObserveEvents.
func (mr *MockEventServiceMockRecorder) ObserveEvents(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{arg0, arg1, arg2, arg3}, arg4...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ObserveEvents", reflect.TypeOf((*MockEventService)(nil).ObserveEvents), varargs...)
}