github.com/hyperledger/aries-framework-go@v0.3.2/pkg/internal/gomocks/store/verifiable/mocks.gen.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/hyperledger/aries-framework-go/pkg/store/verifiable (interfaces: Store) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 verifiable "github.com/hyperledger/aries-framework-go/pkg/doc/verifiable" 12 verifiable0 "github.com/hyperledger/aries-framework-go/pkg/store/verifiable" 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 // GetCredential mocks base method. 39 func (m *MockStore) GetCredential(arg0 string) (*verifiable.Credential, error) { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "GetCredential", arg0) 42 ret0, _ := ret[0].(*verifiable.Credential) 43 ret1, _ := ret[1].(error) 44 return ret0, ret1 45 } 46 47 // GetCredential indicates an expected call of GetCredential. 48 func (mr *MockStoreMockRecorder) GetCredential(arg0 interface{}) *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCredential", reflect.TypeOf((*MockStore)(nil).GetCredential), arg0) 51 } 52 53 // GetCredentialIDByName mocks base method. 54 func (m *MockStore) GetCredentialIDByName(arg0 string) (string, error) { 55 m.ctrl.T.Helper() 56 ret := m.ctrl.Call(m, "GetCredentialIDByName", arg0) 57 ret0, _ := ret[0].(string) 58 ret1, _ := ret[1].(error) 59 return ret0, ret1 60 } 61 62 // GetCredentialIDByName indicates an expected call of GetCredentialIDByName. 63 func (mr *MockStoreMockRecorder) GetCredentialIDByName(arg0 interface{}) *gomock.Call { 64 mr.mock.ctrl.T.Helper() 65 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCredentialIDByName", reflect.TypeOf((*MockStore)(nil).GetCredentialIDByName), arg0) 66 } 67 68 // GetCredentials mocks base method. 69 func (m *MockStore) GetCredentials() ([]*verifiable0.Record, error) { 70 m.ctrl.T.Helper() 71 ret := m.ctrl.Call(m, "GetCredentials") 72 ret0, _ := ret[0].([]*verifiable0.Record) 73 ret1, _ := ret[1].(error) 74 return ret0, ret1 75 } 76 77 // GetCredentials indicates an expected call of GetCredentials. 78 func (mr *MockStoreMockRecorder) GetCredentials() *gomock.Call { 79 mr.mock.ctrl.T.Helper() 80 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCredentials", reflect.TypeOf((*MockStore)(nil).GetCredentials)) 81 } 82 83 // GetPresentation mocks base method. 84 func (m *MockStore) GetPresentation(arg0 string) (*verifiable.Presentation, error) { 85 m.ctrl.T.Helper() 86 ret := m.ctrl.Call(m, "GetPresentation", arg0) 87 ret0, _ := ret[0].(*verifiable.Presentation) 88 ret1, _ := ret[1].(error) 89 return ret0, ret1 90 } 91 92 // GetPresentation indicates an expected call of GetPresentation. 93 func (mr *MockStoreMockRecorder) GetPresentation(arg0 interface{}) *gomock.Call { 94 mr.mock.ctrl.T.Helper() 95 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPresentation", reflect.TypeOf((*MockStore)(nil).GetPresentation), arg0) 96 } 97 98 // GetPresentationIDByName mocks base method. 99 func (m *MockStore) GetPresentationIDByName(arg0 string) (string, error) { 100 m.ctrl.T.Helper() 101 ret := m.ctrl.Call(m, "GetPresentationIDByName", arg0) 102 ret0, _ := ret[0].(string) 103 ret1, _ := ret[1].(error) 104 return ret0, ret1 105 } 106 107 // GetPresentationIDByName indicates an expected call of GetPresentationIDByName. 108 func (mr *MockStoreMockRecorder) GetPresentationIDByName(arg0 interface{}) *gomock.Call { 109 mr.mock.ctrl.T.Helper() 110 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPresentationIDByName", reflect.TypeOf((*MockStore)(nil).GetPresentationIDByName), arg0) 111 } 112 113 // GetPresentations mocks base method. 114 func (m *MockStore) GetPresentations() ([]*verifiable0.Record, error) { 115 m.ctrl.T.Helper() 116 ret := m.ctrl.Call(m, "GetPresentations") 117 ret0, _ := ret[0].([]*verifiable0.Record) 118 ret1, _ := ret[1].(error) 119 return ret0, ret1 120 } 121 122 // GetPresentations indicates an expected call of GetPresentations. 123 func (mr *MockStoreMockRecorder) GetPresentations() *gomock.Call { 124 mr.mock.ctrl.T.Helper() 125 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPresentations", reflect.TypeOf((*MockStore)(nil).GetPresentations)) 126 } 127 128 // RemoveCredentialByName mocks base method. 129 func (m *MockStore) RemoveCredentialByName(arg0 string) error { 130 m.ctrl.T.Helper() 131 ret := m.ctrl.Call(m, "RemoveCredentialByName", arg0) 132 ret0, _ := ret[0].(error) 133 return ret0 134 } 135 136 // RemoveCredentialByName indicates an expected call of RemoveCredentialByName. 137 func (mr *MockStoreMockRecorder) RemoveCredentialByName(arg0 interface{}) *gomock.Call { 138 mr.mock.ctrl.T.Helper() 139 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveCredentialByName", reflect.TypeOf((*MockStore)(nil).RemoveCredentialByName), arg0) 140 } 141 142 // RemovePresentationByName mocks base method. 143 func (m *MockStore) RemovePresentationByName(arg0 string) error { 144 m.ctrl.T.Helper() 145 ret := m.ctrl.Call(m, "RemovePresentationByName", arg0) 146 ret0, _ := ret[0].(error) 147 return ret0 148 } 149 150 // RemovePresentationByName indicates an expected call of RemovePresentationByName. 151 func (mr *MockStoreMockRecorder) RemovePresentationByName(arg0 interface{}) *gomock.Call { 152 mr.mock.ctrl.T.Helper() 153 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemovePresentationByName", reflect.TypeOf((*MockStore)(nil).RemovePresentationByName), arg0) 154 } 155 156 // SaveCredential mocks base method. 157 func (m *MockStore) SaveCredential(arg0 string, arg1 *verifiable.Credential, arg2 ...verifiable0.Opt) error { 158 m.ctrl.T.Helper() 159 varargs := []interface{}{arg0, arg1} 160 for _, a := range arg2 { 161 varargs = append(varargs, a) 162 } 163 ret := m.ctrl.Call(m, "SaveCredential", varargs...) 164 ret0, _ := ret[0].(error) 165 return ret0 166 } 167 168 // SaveCredential indicates an expected call of SaveCredential. 169 func (mr *MockStoreMockRecorder) SaveCredential(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 170 mr.mock.ctrl.T.Helper() 171 varargs := append([]interface{}{arg0, arg1}, arg2...) 172 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveCredential", reflect.TypeOf((*MockStore)(nil).SaveCredential), varargs...) 173 } 174 175 // SavePresentation mocks base method. 176 func (m *MockStore) SavePresentation(arg0 string, arg1 *verifiable.Presentation, arg2 ...verifiable0.Opt) error { 177 m.ctrl.T.Helper() 178 varargs := []interface{}{arg0, arg1} 179 for _, a := range arg2 { 180 varargs = append(varargs, a) 181 } 182 ret := m.ctrl.Call(m, "SavePresentation", varargs...) 183 ret0, _ := ret[0].(error) 184 return ret0 185 } 186 187 // SavePresentation indicates an expected call of SavePresentation. 188 func (mr *MockStoreMockRecorder) SavePresentation(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 189 mr.mock.ctrl.T.Helper() 190 varargs := append([]interface{}{arg0, arg1}, arg2...) 191 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SavePresentation", reflect.TypeOf((*MockStore)(nil).SavePresentation), varargs...) 192 }