github.com/iotexproject/iotex-core@v1.14.1-rc1/test/mock/mock_privatekey/mock_privatekey.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: blockchain/config_privatekey.go 3 4 // Package mock_privatekey is a generated GoMock package. 5 package mock_privatekey 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 api "github.com/hashicorp/vault/api" 12 ) 13 14 // MockprivKeyLoader is a mock of privKeyLoader interface. 15 type MockprivKeyLoader struct { 16 ctrl *gomock.Controller 17 recorder *MockprivKeyLoaderMockRecorder 18 } 19 20 // MockprivKeyLoaderMockRecorder is the mock recorder for MockprivKeyLoader. 21 type MockprivKeyLoaderMockRecorder struct { 22 mock *MockprivKeyLoader 23 } 24 25 // NewMockprivKeyLoader creates a new mock instance. 26 func NewMockprivKeyLoader(ctrl *gomock.Controller) *MockprivKeyLoader { 27 mock := &MockprivKeyLoader{ctrl: ctrl} 28 mock.recorder = &MockprivKeyLoaderMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use. 33 func (m *MockprivKeyLoader) EXPECT() *MockprivKeyLoaderMockRecorder { 34 return m.recorder 35 } 36 37 // load mocks base method. 38 func (m *MockprivKeyLoader) load() (string, error) { 39 m.ctrl.T.Helper() 40 ret := m.ctrl.Call(m, "load") 41 ret0, _ := ret[0].(string) 42 ret1, _ := ret[1].(error) 43 return ret0, ret1 44 } 45 46 // load indicates an expected call of load. 47 func (mr *MockprivKeyLoaderMockRecorder) load() *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "load", reflect.TypeOf((*MockprivKeyLoader)(nil).load)) 50 } 51 52 // MockvaultSecretReader is a mock of vaultSecretReader interface. 53 type MockvaultSecretReader struct { 54 ctrl *gomock.Controller 55 recorder *MockvaultSecretReaderMockRecorder 56 } 57 58 // MockvaultSecretReaderMockRecorder is the mock recorder for MockvaultSecretReader. 59 type MockvaultSecretReaderMockRecorder struct { 60 mock *MockvaultSecretReader 61 } 62 63 // NewMockvaultSecretReader creates a new mock instance. 64 func NewMockvaultSecretReader(ctrl *gomock.Controller) *MockvaultSecretReader { 65 mock := &MockvaultSecretReader{ctrl: ctrl} 66 mock.recorder = &MockvaultSecretReaderMockRecorder{mock} 67 return mock 68 } 69 70 // EXPECT returns an object that allows the caller to indicate expected use. 71 func (m *MockvaultSecretReader) EXPECT() *MockvaultSecretReaderMockRecorder { 72 return m.recorder 73 } 74 75 // Read mocks base method. 76 func (m *MockvaultSecretReader) Read(path string) (*api.Secret, error) { 77 m.ctrl.T.Helper() 78 ret := m.ctrl.Call(m, "Read", path) 79 ret0, _ := ret[0].(*api.Secret) 80 ret1, _ := ret[1].(error) 81 return ret0, ret1 82 } 83 84 // Read indicates an expected call of Read. 85 func (mr *MockvaultSecretReaderMockRecorder) Read(path interface{}) *gomock.Call { 86 mr.mock.ctrl.T.Helper() 87 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockvaultSecretReader)(nil).Read), path) 88 }