MCPcopy
hub / github.com/minio/minio-go / generateLocationResponse

Function generateLocationResponse

bucket-cache_test.go:278–282  ·  view source on GitHub ↗

generates http response with bucket location set in the body.

(resp *http.Response, bodyContent []byte)

Source from the content-addressed store, hash-verified

276
277// generates http response with bucket location set in the body.
278func generateLocationResponse(resp *http.Response, bodyContent []byte) (*http.Response, error) {
279 resp.StatusCode = http.StatusOK
280 resp.Body = io.NopCloser(bytes.NewBuffer(bodyContent))
281 return resp, nil
282}
283
284// Tests the processing of GetPolicy response from server.
285func TestProcessBucketLocationResponse(t *testing.T) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected