-
Notifications
You must be signed in to change notification settings - Fork 19
/
store_mock.go
124 lines (105 loc) · 3.78 KB
/
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
// Code generated by MockGen. DO NOT EDIT.
// Source: code.vegaprotocol.io/vega/wallet/service (interfaces: Store)
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
service "code.vegaprotocol.io/vega/wallet/service"
v1 "code.vegaprotocol.io/vega/wallet/service/v1"
gomock "github.com/golang/mock/gomock"
)
// MockStore is a mock of Store interface.
type MockStore struct {
ctrl *gomock.Controller
recorder *MockStoreMockRecorder
}
// MockStoreMockRecorder is the mock recorder for MockStore.
type MockStoreMockRecorder struct {
mock *MockStore
}
// NewMockStore creates a new mock instance.
func NewMockStore(ctrl *gomock.Controller) *MockStore {
mock := &MockStore{ctrl: ctrl}
mock.recorder = &MockStoreMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockStore) EXPECT() *MockStoreMockRecorder {
return m.recorder
}
// ConfigExists mocks base method.
func (m *MockStore) ConfigExists() (bool, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ConfigExists")
ret0, _ := ret[0].(bool)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ConfigExists indicates an expected call of ConfigExists.
func (mr *MockStoreMockRecorder) ConfigExists() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfigExists", reflect.TypeOf((*MockStore)(nil).ConfigExists))
}
// GetConfig mocks base method.
func (m *MockStore) GetConfig() (*service.Config, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetConfig")
ret0, _ := ret[0].(*service.Config)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetConfig indicates an expected call of GetConfig.
func (mr *MockStoreMockRecorder) GetConfig() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfig", reflect.TypeOf((*MockStore)(nil).GetConfig))
}
// GetRsaKeys mocks base method.
func (m *MockStore) GetRsaKeys() (*v1.RSAKeys, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetRsaKeys")
ret0, _ := ret[0].(*v1.RSAKeys)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetRsaKeys indicates an expected call of GetRsaKeys.
func (mr *MockStoreMockRecorder) GetRsaKeys() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRsaKeys", reflect.TypeOf((*MockStore)(nil).GetRsaKeys))
}
// RSAKeysExists mocks base method.
func (m *MockStore) RSAKeysExists() (bool, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RSAKeysExists")
ret0, _ := ret[0].(bool)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// RSAKeysExists indicates an expected call of RSAKeysExists.
func (mr *MockStoreMockRecorder) RSAKeysExists() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RSAKeysExists", reflect.TypeOf((*MockStore)(nil).RSAKeysExists))
}
// SaveConfig mocks base method.
func (m *MockStore) SaveConfig(arg0 *service.Config) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SaveConfig", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// SaveConfig indicates an expected call of SaveConfig.
func (mr *MockStoreMockRecorder) SaveConfig(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveConfig", reflect.TypeOf((*MockStore)(nil).SaveConfig), arg0)
}
// SaveRSAKeys mocks base method.
func (m *MockStore) SaveRSAKeys(arg0 *v1.RSAKeys) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SaveRSAKeys", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// SaveRSAKeys indicates an expected call of SaveRSAKeys.
func (mr *MockStoreMockRecorder) SaveRSAKeys(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveRSAKeys", reflect.TypeOf((*MockStore)(nil).SaveRSAKeys), arg0)
}