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