/
ohlcv_service.go
56 lines (46 loc) · 1.65 KB
/
ohlcv_service.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
// Code generated by mockery v1.0.0. DO NOT EDIT.
package mocks
import (
common "github.com/ethereum/go-ethereum/common"
mock "github.com/stretchr/testify/mock"
types "github.com/tomochain/tomodex/types"
"github.com/tomochain/tomodex/ws"
)
// OHLCVService is an autogenerated mock type for the OHLCVService type
type OHLCVService struct {
mock.Mock
}
// GetOHLCV provides a mock function with given fields: p, duration, unit, timeInterval
func (_m *OHLCVService) GetOHLCV(p []types.PairAddresses, duration int64, unit string, timeInterval ...int64) ([]*types.Tick, error) {
_va := make([]interface{}, len(timeInterval))
for _i := range timeInterval {
_va[_i] = timeInterval[_i]
}
var _ca []interface{}
_ca = append(_ca, p, duration, unit)
_ca = append(_ca, _va...)
ret := _m.Called(_ca...)
var r0 []*types.Tick
if rf, ok := ret.Get(0).(func([]types.PairAddresses, int64, string, ...int64) []*types.Tick); ok {
r0 = rf(p, duration, unit, timeInterval...)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]*types.Tick)
}
}
var r1 error
if rf, ok := ret.Get(1).(func([]types.PairAddresses, int64, string, ...int64) error); ok {
r1 = rf(p, duration, unit, timeInterval...)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// Subscribe provides a mock function with given fields: conn, bt, qt, p
func (_m *OHLCVService) Subscribe(conn *ws.Client, bt common.Address, qt common.Address, p *types.Params) {
_m.Called(conn, bt, qt, p)
}
// Unsubscribe provides a mock function with given fields: conn, bt, qt, p
func (_m *OHLCVService) Unsubscribe(conn *ws.Client, bt common.Address, qt common.Address, p *types.Params) {
_m.Called(conn, bt, qt, p)
}