/
assets_state_mock.go
93 lines (78 loc) · 2.87 KB
/
assets_state_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
// Code generated by MockGen. DO NOT EDIT.
// Source: code.vegaprotocol.io/vega/core/checkpoint (interfaces: AssetsState)
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
types "code.vegaprotocol.io/vega/core/types"
gomock "github.com/golang/mock/gomock"
)
// MockAssetsState is a mock of AssetsState interface.
type MockAssetsState struct {
ctrl *gomock.Controller
recorder *MockAssetsStateMockRecorder
}
// MockAssetsStateMockRecorder is the mock recorder for MockAssetsState.
type MockAssetsStateMockRecorder struct {
mock *MockAssetsState
}
// NewMockAssetsState creates a new mock instance.
func NewMockAssetsState(ctrl *gomock.Controller) *MockAssetsState {
mock := &MockAssetsState{ctrl: ctrl}
mock.recorder = &MockAssetsStateMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockAssetsState) EXPECT() *MockAssetsStateMockRecorder {
return m.recorder
}
// Checkpoint mocks base method.
func (m *MockAssetsState) Checkpoint() ([]byte, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Checkpoint")
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Checkpoint indicates an expected call of Checkpoint.
func (mr *MockAssetsStateMockRecorder) Checkpoint() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Checkpoint", reflect.TypeOf((*MockAssetsState)(nil).Checkpoint))
}
// GetEnabledAssets mocks base method.
func (m *MockAssetsState) GetEnabledAssets() []*types.Asset {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetEnabledAssets")
ret0, _ := ret[0].([]*types.Asset)
return ret0
}
// GetEnabledAssets indicates an expected call of GetEnabledAssets.
func (mr *MockAssetsStateMockRecorder) GetEnabledAssets() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEnabledAssets", reflect.TypeOf((*MockAssetsState)(nil).GetEnabledAssets))
}
// Load mocks base method.
func (m *MockAssetsState) Load(arg0 context.Context, arg1 []byte) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Load", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// Load indicates an expected call of Load.
func (mr *MockAssetsStateMockRecorder) Load(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Load", reflect.TypeOf((*MockAssetsState)(nil).Load), arg0, arg1)
}
// Name mocks base method.
func (m *MockAssetsState) Name() types.CheckpointName {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Name")
ret0, _ := ret[0].(types.CheckpointName)
return ret0
}
// Name indicates an expected call of Name.
func (mr *MockAssetsStateMockRecorder) Name() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockAssetsState)(nil).Name))
}