code.vegaprotocol.io/vega@v0.79.0/core/products/mocks/mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: code.vegaprotocol.io/vega/core/products (interfaces: OracleEngine,Broker)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	common "code.vegaprotocol.io/vega/core/datasource/common"
    12  	spec "code.vegaprotocol.io/vega/core/datasource/spec"
    13  	events "code.vegaprotocol.io/vega/core/events"
    14  	gomock "github.com/golang/mock/gomock"
    15  )
    16  
    17  // MockOracleEngine is a mock of OracleEngine interface.
    18  type MockOracleEngine struct {
    19  	ctrl     *gomock.Controller
    20  	recorder *MockOracleEngineMockRecorder
    21  }
    22  
    23  // MockOracleEngineMockRecorder is the mock recorder for MockOracleEngine.
    24  type MockOracleEngineMockRecorder struct {
    25  	mock *MockOracleEngine
    26  }
    27  
    28  // NewMockOracleEngine creates a new mock instance.
    29  func NewMockOracleEngine(ctrl *gomock.Controller) *MockOracleEngine {
    30  	mock := &MockOracleEngine{ctrl: ctrl}
    31  	mock.recorder = &MockOracleEngineMockRecorder{mock}
    32  	return mock
    33  }
    34  
    35  // EXPECT returns an object that allows the caller to indicate expected use.
    36  func (m *MockOracleEngine) EXPECT() *MockOracleEngineMockRecorder {
    37  	return m.recorder
    38  }
    39  
    40  // ListensToSigners mocks base method.
    41  func (m *MockOracleEngine) ListensToSigners(arg0 common.Data) bool {
    42  	m.ctrl.T.Helper()
    43  	ret := m.ctrl.Call(m, "ListensToSigners", arg0)
    44  	ret0, _ := ret[0].(bool)
    45  	return ret0
    46  }
    47  
    48  // ListensToSigners indicates an expected call of ListensToSigners.
    49  func (mr *MockOracleEngineMockRecorder) ListensToSigners(arg0 interface{}) *gomock.Call {
    50  	mr.mock.ctrl.T.Helper()
    51  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListensToSigners", reflect.TypeOf((*MockOracleEngine)(nil).ListensToSigners), arg0)
    52  }
    53  
    54  // Subscribe mocks base method.
    55  func (m *MockOracleEngine) Subscribe(arg0 context.Context, arg1 spec.Spec, arg2 spec.OnMatchedData) (spec.SubscriptionID, spec.Unsubscriber, error) {
    56  	m.ctrl.T.Helper()
    57  	ret := m.ctrl.Call(m, "Subscribe", arg0, arg1, arg2)
    58  	ret0, _ := ret[0].(spec.SubscriptionID)
    59  	ret1, _ := ret[1].(spec.Unsubscriber)
    60  	ret2, _ := ret[2].(error)
    61  	return ret0, ret1, ret2
    62  }
    63  
    64  // Subscribe indicates an expected call of Subscribe.
    65  func (mr *MockOracleEngineMockRecorder) Subscribe(arg0, arg1, arg2 interface{}) *gomock.Call {
    66  	mr.mock.ctrl.T.Helper()
    67  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Subscribe", reflect.TypeOf((*MockOracleEngine)(nil).Subscribe), arg0, arg1, arg2)
    68  }
    69  
    70  // Unsubscribe mocks base method.
    71  func (m *MockOracleEngine) Unsubscribe(arg0 context.Context, arg1 spec.SubscriptionID) {
    72  	m.ctrl.T.Helper()
    73  	m.ctrl.Call(m, "Unsubscribe", arg0, arg1)
    74  }
    75  
    76  // Unsubscribe indicates an expected call of Unsubscribe.
    77  func (mr *MockOracleEngineMockRecorder) Unsubscribe(arg0, arg1 interface{}) *gomock.Call {
    78  	mr.mock.ctrl.T.Helper()
    79  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unsubscribe", reflect.TypeOf((*MockOracleEngine)(nil).Unsubscribe), arg0, arg1)
    80  }
    81  
    82  // MockBroker is a mock of Broker interface.
    83  type MockBroker struct {
    84  	ctrl     *gomock.Controller
    85  	recorder *MockBrokerMockRecorder
    86  }
    87  
    88  // MockBrokerMockRecorder is the mock recorder for MockBroker.
    89  type MockBrokerMockRecorder struct {
    90  	mock *MockBroker
    91  }
    92  
    93  // NewMockBroker creates a new mock instance.
    94  func NewMockBroker(ctrl *gomock.Controller) *MockBroker {
    95  	mock := &MockBroker{ctrl: ctrl}
    96  	mock.recorder = &MockBrokerMockRecorder{mock}
    97  	return mock
    98  }
    99  
   100  // EXPECT returns an object that allows the caller to indicate expected use.
   101  func (m *MockBroker) EXPECT() *MockBrokerMockRecorder {
   102  	return m.recorder
   103  }
   104  
   105  // Send mocks base method.
   106  func (m *MockBroker) Send(arg0 events.Event) {
   107  	m.ctrl.T.Helper()
   108  	m.ctrl.Call(m, "Send", arg0)
   109  }
   110  
   111  // Send indicates an expected call of Send.
   112  func (mr *MockBrokerMockRecorder) Send(arg0 interface{}) *gomock.Call {
   113  	mr.mock.ctrl.T.Helper()
   114  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockBroker)(nil).Send), arg0)
   115  }
   116  
   117  // SendBatch mocks base method.
   118  func (m *MockBroker) SendBatch(arg0 []events.Event) {
   119  	m.ctrl.T.Helper()
   120  	m.ctrl.Call(m, "SendBatch", arg0)
   121  }
   122  
   123  // SendBatch indicates an expected call of SendBatch.
   124  func (mr *MockBrokerMockRecorder) SendBatch(arg0 interface{}) *gomock.Call {
   125  	mr.mock.ctrl.T.Helper()
   126  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendBatch", reflect.TypeOf((*MockBroker)(nil).SendBatch), arg0)
   127  }