MCPcopy
hub / github.com/grafana/tempo / blobStorageError

Function blobStorageError

tempodb/backend/azure/azure_test.go:171–180  ·  view source on GitHub ↗
(serviceCode string)

Source from the content-addressed store, hash-verified

169}
170
171func blobStorageError(serviceCode string) error {
172 resp := &http.Response{
173 Header: http.Header{
174 textproto.CanonicalMIMEHeaderKey("x-ms-error-code"): []string{serviceCode},
175 },
176 Request: httptest.NewRequest("GET", "/blobby/blob", nil), // azure error handling code will panic if Request is unset
177 }
178
179 return runtime.NewResponseError(resp)
180}
181
182func TestObjectWithPrefix(t *testing.T) {
183 tests := []struct {

Callers 1

TestReadErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected