testUploadStorageDefRepo returns an empty list so the handler fails at "no storage definitions" rather than panicking on a nil repo.
| 79 | // testUploadStorageDefRepo returns an empty list so the handler fails at "no storage definitions" |
| 80 | // rather than panicking on a nil repo. |
| 81 | type testUploadStorageDefRepo struct{} |
| 82 | |
| 83 | func (r *testUploadStorageDefRepo) ListStorageDefinitions() ([]*domainmodels.StorageDefinition, error) { |
| 84 | return nil, nil |
nothing calls this directly
no outgoing calls
no test coverage detected