code.vegaprotocol.io/vega@v0.79.0/core/broker/mocks/broker_mock.go (about)

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