MCPcopy Create free account
hub / github.com/ericls/imgdd / testUploadStorageDefRepo

Struct testUploadStorageDefRepo

httpserver/image_handlers_test.go:81–81  ·  view source on GitHub ↗

testUploadStorageDefRepo returns an empty list so the handler fails at "no storage definitions" rather than panicking on a nil repo.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected