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