MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / getAttachmentMetaFromREST

Function getAttachmentMetaFromREST

rest/attachment_test.go:3038–3042  ·  view source on GitHub ↗

getAttachmentMetaFromREST unmarhsals the response body from GET /ks/doc/att?meta=true

(t *testing.T, responseBody []byte)

Source from the content-addressed store, hash-verified

3036
3037// getAttachmentMetaFromREST unmarhsals the response body from GET /ks/doc/att?meta=true
3038func getAttachmentMetaFromREST(t *testing.T, responseBody []byte) attachmentMetaResponse {
3039 var resp attachmentMetaResponse
3040 require.NoError(t, base.JSONUnmarshal(responseBody, &resp))
3041 return resp
3042}

Callers 2

Calls 1

JSONUnmarshalFunction · 0.92

Tested by

no test coverage detected