code.vegaprotocol.io/vega@v0.79.0/datanode/candlesv2/mocks/candle_store_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: code.vegaprotocol.io/vega/datanode/candlesv2 (interfaces: CandleStore) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 context "context" 9 reflect "reflect" 10 time "time" 11 12 entities "code.vegaprotocol.io/vega/datanode/entities" 13 gomock "github.com/golang/mock/gomock" 14 ) 15 16 // MockCandleStore is a mock of CandleStore interface. 17 type MockCandleStore struct { 18 ctrl *gomock.Controller 19 recorder *MockCandleStoreMockRecorder 20 } 21 22 // MockCandleStoreMockRecorder is the mock recorder for MockCandleStore. 23 type MockCandleStoreMockRecorder struct { 24 mock *MockCandleStore 25 } 26 27 // NewMockCandleStore creates a new mock instance. 28 func NewMockCandleStore(ctrl *gomock.Controller) *MockCandleStore { 29 mock := &MockCandleStore{ctrl: ctrl} 30 mock.recorder = &MockCandleStoreMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use. 35 func (m *MockCandleStore) EXPECT() *MockCandleStoreMockRecorder { 36 return m.recorder 37 } 38 39 // CandleExists mocks base method. 40 func (m *MockCandleStore) CandleExists(arg0 context.Context, arg1 string) (bool, error) { 41 m.ctrl.T.Helper() 42 ret := m.ctrl.Call(m, "CandleExists", arg0, arg1) 43 ret0, _ := ret[0].(bool) 44 ret1, _ := ret[1].(error) 45 return ret0, ret1 46 } 47 48 // CandleExists indicates an expected call of CandleExists. 49 func (mr *MockCandleStoreMockRecorder) CandleExists(arg0, arg1 interface{}) *gomock.Call { 50 mr.mock.ctrl.T.Helper() 51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CandleExists", reflect.TypeOf((*MockCandleStore)(nil).CandleExists), arg0, arg1) 52 } 53 54 // GetCandleDataForTimeSpan mocks base method. 55 func (m *MockCandleStore) GetCandleDataForTimeSpan(arg0 context.Context, arg1 string, arg2, arg3 *time.Time, arg4 entities.CursorPagination) ([]entities.Candle, entities.PageInfo, error) { 56 m.ctrl.T.Helper() 57 ret := m.ctrl.Call(m, "GetCandleDataForTimeSpan", arg0, arg1, arg2, arg3, arg4) 58 ret0, _ := ret[0].([]entities.Candle) 59 ret1, _ := ret[1].(entities.PageInfo) 60 ret2, _ := ret[2].(error) 61 return ret0, ret1, ret2 62 } 63 64 // GetCandleDataForTimeSpan indicates an expected call of GetCandleDataForTimeSpan. 65 func (mr *MockCandleStoreMockRecorder) GetCandleDataForTimeSpan(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 66 mr.mock.ctrl.T.Helper() 67 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCandleDataForTimeSpan", reflect.TypeOf((*MockCandleStore)(nil).GetCandleDataForTimeSpan), arg0, arg1, arg2, arg3, arg4) 68 } 69 70 // GetCandleIDForIntervalAndMarket mocks base method. 71 func (m *MockCandleStore) GetCandleIDForIntervalAndMarket(arg0 context.Context, arg1, arg2 string) (bool, string, error) { 72 m.ctrl.T.Helper() 73 ret := m.ctrl.Call(m, "GetCandleIDForIntervalAndMarket", arg0, arg1, arg2) 74 ret0, _ := ret[0].(bool) 75 ret1, _ := ret[1].(string) 76 ret2, _ := ret[2].(error) 77 return ret0, ret1, ret2 78 } 79 80 // GetCandleIDForIntervalAndMarket indicates an expected call of GetCandleIDForIntervalAndMarket. 81 func (mr *MockCandleStoreMockRecorder) GetCandleIDForIntervalAndMarket(arg0, arg1, arg2 interface{}) *gomock.Call { 82 mr.mock.ctrl.T.Helper() 83 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCandleIDForIntervalAndMarket", reflect.TypeOf((*MockCandleStore)(nil).GetCandleIDForIntervalAndMarket), arg0, arg1, arg2) 84 } 85 86 // GetCandlesForMarket mocks base method. 87 func (m *MockCandleStore) GetCandlesForMarket(arg0 context.Context, arg1 string) (map[string]string, error) { 88 m.ctrl.T.Helper() 89 ret := m.ctrl.Call(m, "GetCandlesForMarket", arg0, arg1) 90 ret0, _ := ret[0].(map[string]string) 91 ret1, _ := ret[1].(error) 92 return ret0, ret1 93 } 94 95 // GetCandlesForMarket indicates an expected call of GetCandlesForMarket. 96 func (mr *MockCandleStoreMockRecorder) GetCandlesForMarket(arg0, arg1 interface{}) *gomock.Call { 97 mr.mock.ctrl.T.Helper() 98 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCandlesForMarket", reflect.TypeOf((*MockCandleStore)(nil).GetCandlesForMarket), arg0, arg1) 99 }