code.vegaprotocol.io/vega@v0.79.0/libs/subscribers/mocks/broker_mocks.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: code.vegaprotocol.io/vega/libs/subscribers (interfaces: Broker) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 reflect "reflect" 9 10 broker "code.vegaprotocol.io/vega/libs/broker" 11 gomock "github.com/golang/mock/gomock" 12 ) 13 14 // MockBroker is a mock of Broker interface. 15 type MockBroker struct { 16 ctrl *gomock.Controller 17 recorder *MockBrokerMockRecorder 18 } 19 20 // MockBrokerMockRecorder is the mock recorder for MockBroker. 21 type MockBrokerMockRecorder struct { 22 mock *MockBroker 23 } 24 25 // NewMockBroker creates a new mock instance. 26 func NewMockBroker(ctrl *gomock.Controller) *MockBroker { 27 mock := &MockBroker{ctrl: ctrl} 28 mock.recorder = &MockBrokerMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use. 33 func (m *MockBroker) EXPECT() *MockBrokerMockRecorder { 34 return m.recorder 35 } 36 37 // Subscribe mocks base method. 38 func (m *MockBroker) Subscribe(arg0 broker.Subscriber) int { 39 m.ctrl.T.Helper() 40 ret := m.ctrl.Call(m, "Subscribe", arg0) 41 ret0, _ := ret[0].(int) 42 return ret0 43 } 44 45 // Subscribe indicates an expected call of Subscribe. 46 func (mr *MockBrokerMockRecorder) Subscribe(arg0 interface{}) *gomock.Call { 47 mr.mock.ctrl.T.Helper() 48 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Subscribe", reflect.TypeOf((*MockBroker)(nil).Subscribe), arg0) 49 } 50 51 // Unsubscribe mocks base method. 52 func (m *MockBroker) Unsubscribe(arg0 int) { 53 m.ctrl.T.Helper() 54 m.ctrl.Call(m, "Unsubscribe", arg0) 55 } 56 57 // Unsubscribe indicates an expected call of Unsubscribe. 58 func (mr *MockBrokerMockRecorder) Unsubscribe(arg0 interface{}) *gomock.Call { 59 mr.mock.ctrl.T.Helper() 60 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unsubscribe", reflect.TypeOf((*MockBroker)(nil).Unsubscribe), arg0) 61 }