-
Notifications
You must be signed in to change notification settings - Fork 0
/
PriceFeedMutableMarketConfigs.go
108 lines (87 loc) · 3.1 KB
/
PriceFeedMutableMarketConfigs.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
100
101
102
103
104
105
106
107
108
// Code generated by mockery v2.14.0. DO NOT EDIT.
package mocks
import (
types "github.com/jinxprotocol/v4-chain/protocol/daemons/pricefeed/client/types"
pricestypes "github.com/jinxprotocol/v4-chain/protocol/x/prices/types"
mock "github.com/stretchr/testify/mock"
)
// PricefeedMutableMarketConfigs is an autogenerated mock type for the PricefeedMutableMarketConfigs type
type PricefeedMutableMarketConfigs struct {
mock.Mock
}
// AddPriceEncoder provides a mock function with given fields: updater
func (_m *PricefeedMutableMarketConfigs) AddPriceEncoder(updater types.ExchangeConfigUpdater) {
_m.Called(updater)
}
// AddPriceFetcher provides a mock function with given fields: updater
func (_m *PricefeedMutableMarketConfigs) AddPriceFetcher(updater types.ExchangeConfigUpdater) {
_m.Called(updater)
}
// GetExchangeMarketConfigCopy provides a mock function with given fields: id
func (_m *PricefeedMutableMarketConfigs) GetExchangeMarketConfigCopy(id string) (*types.MutableExchangeMarketConfig, error) {
ret := _m.Called(id)
var r0 *types.MutableExchangeMarketConfig
if rf, ok := ret.Get(0).(func(string) *types.MutableExchangeMarketConfig); ok {
r0 = rf(id)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*types.MutableExchangeMarketConfig)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(string) error); ok {
r1 = rf(id)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// GetMarketConfigCopies provides a mock function with given fields: markets
func (_m *PricefeedMutableMarketConfigs) GetMarketConfigCopies(markets []uint32) ([]*types.MutableMarketConfig, error) {
ret := _m.Called(markets)
var r0 []*types.MutableMarketConfig
if rf, ok := ret.Get(0).(func([]uint32) []*types.MutableMarketConfig); ok {
r0 = rf(markets)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]*types.MutableMarketConfig)
}
}
var r1 error
if rf, ok := ret.Get(1).(func([]uint32) error); ok {
r1 = rf(markets)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// UpdateMarkets provides a mock function with given fields: marketParams
func (_m *PricefeedMutableMarketConfigs) UpdateMarkets(marketParams []pricestypes.MarketParam) (map[uint32]error, error) {
ret := _m.Called(marketParams)
var r0 map[uint32]error
if rf, ok := ret.Get(0).(func([]pricestypes.MarketParam) map[uint32]error); ok {
r0 = rf(marketParams)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(map[uint32]error)
}
}
var r1 error
if rf, ok := ret.Get(1).(func([]pricestypes.MarketParam) error); ok {
r1 = rf(marketParams)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
type mockConstructorTestingTNewPricefeedMutableMarketConfigs interface {
mock.TestingT
Cleanup(func())
}
// NewPricefeedMutableMarketConfigs creates a new instance of PricefeedMutableMarketConfigs. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewPricefeedMutableMarketConfigs(t mockConstructorTestingTNewPricefeedMutableMarketConfigs) *PricefeedMutableMarketConfigs {
mock := &PricefeedMutableMarketConfigs{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}