code.vegaprotocol.io/vega@v0.79.0/wallet/service/mocks/store_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: code.vegaprotocol.io/vega/wallet/service (interfaces: Store) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 reflect "reflect" 9 10 service "code.vegaprotocol.io/vega/wallet/service" 11 v1 "code.vegaprotocol.io/vega/wallet/service/v1" 12 gomock "github.com/golang/mock/gomock" 13 ) 14 15 // MockStore is a mock of Store interface. 16 type MockStore struct { 17 ctrl *gomock.Controller 18 recorder *MockStoreMockRecorder 19 } 20 21 // MockStoreMockRecorder is the mock recorder for MockStore. 22 type MockStoreMockRecorder struct { 23 mock *MockStore 24 } 25 26 // NewMockStore creates a new mock instance. 27 func NewMockStore(ctrl *gomock.Controller) *MockStore { 28 mock := &MockStore{ctrl: ctrl} 29 mock.recorder = &MockStoreMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockStore) EXPECT() *MockStoreMockRecorder { 35 return m.recorder 36 } 37 38 // ConfigExists mocks base method. 39 func (m *MockStore) ConfigExists() (bool, error) { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "ConfigExists") 42 ret0, _ := ret[0].(bool) 43 ret1, _ := ret[1].(error) 44 return ret0, ret1 45 } 46 47 // ConfigExists indicates an expected call of ConfigExists. 48 func (mr *MockStoreMockRecorder) ConfigExists() *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfigExists", reflect.TypeOf((*MockStore)(nil).ConfigExists)) 51 } 52 53 // GetConfig mocks base method. 54 func (m *MockStore) GetConfig() (*service.Config, error) { 55 m.ctrl.T.Helper() 56 ret := m.ctrl.Call(m, "GetConfig") 57 ret0, _ := ret[0].(*service.Config) 58 ret1, _ := ret[1].(error) 59 return ret0, ret1 60 } 61 62 // GetConfig indicates an expected call of GetConfig. 63 func (mr *MockStoreMockRecorder) GetConfig() *gomock.Call { 64 mr.mock.ctrl.T.Helper() 65 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfig", reflect.TypeOf((*MockStore)(nil).GetConfig)) 66 } 67 68 // GetRsaKeys mocks base method. 69 func (m *MockStore) GetRsaKeys() (*v1.RSAKeys, error) { 70 m.ctrl.T.Helper() 71 ret := m.ctrl.Call(m, "GetRsaKeys") 72 ret0, _ := ret[0].(*v1.RSAKeys) 73 ret1, _ := ret[1].(error) 74 return ret0, ret1 75 } 76 77 // GetRsaKeys indicates an expected call of GetRsaKeys. 78 func (mr *MockStoreMockRecorder) GetRsaKeys() *gomock.Call { 79 mr.mock.ctrl.T.Helper() 80 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRsaKeys", reflect.TypeOf((*MockStore)(nil).GetRsaKeys)) 81 } 82 83 // RSAKeysExists mocks base method. 84 func (m *MockStore) RSAKeysExists() (bool, error) { 85 m.ctrl.T.Helper() 86 ret := m.ctrl.Call(m, "RSAKeysExists") 87 ret0, _ := ret[0].(bool) 88 ret1, _ := ret[1].(error) 89 return ret0, ret1 90 } 91 92 // RSAKeysExists indicates an expected call of RSAKeysExists. 93 func (mr *MockStoreMockRecorder) RSAKeysExists() *gomock.Call { 94 mr.mock.ctrl.T.Helper() 95 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RSAKeysExists", reflect.TypeOf((*MockStore)(nil).RSAKeysExists)) 96 } 97 98 // SaveConfig mocks base method. 99 func (m *MockStore) SaveConfig(arg0 *service.Config) error { 100 m.ctrl.T.Helper() 101 ret := m.ctrl.Call(m, "SaveConfig", arg0) 102 ret0, _ := ret[0].(error) 103 return ret0 104 } 105 106 // SaveConfig indicates an expected call of SaveConfig. 107 func (mr *MockStoreMockRecorder) SaveConfig(arg0 interface{}) *gomock.Call { 108 mr.mock.ctrl.T.Helper() 109 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveConfig", reflect.TypeOf((*MockStore)(nil).SaveConfig), arg0) 110 } 111 112 // SaveRSAKeys mocks base method. 113 func (m *MockStore) SaveRSAKeys(arg0 *v1.RSAKeys) error { 114 m.ctrl.T.Helper() 115 ret := m.ctrl.Call(m, "SaveRSAKeys", arg0) 116 ret0, _ := ret[0].(error) 117 return ret0 118 } 119 120 // SaveRSAKeys indicates an expected call of SaveRSAKeys. 121 func (mr *MockStoreMockRecorder) SaveRSAKeys(arg0 interface{}) *gomock.Call { 122 mr.mock.ctrl.T.Helper() 123 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveRSAKeys", reflect.TypeOf((*MockStore)(nil).SaveRSAKeys), arg0) 124 }