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

Function GetAttachmentsFrom1xBody

db/util_testing.go:998–1000  ·  view source on GitHub ↗

GetAttachmentsFrom1xBody returns the attachment data when it returned from Get1xBody functions, where the data is already db.Body.

(t *testing.T, body Body)

Source from the content-addressed store, hash-verified

996
997// GetAttachmentsFrom1xBody returns the attachment data when it returned from Get1xBody functions, where the data is already db.Body.
998func GetAttachmentsFrom1xBody(t *testing.T, body Body) AttachmentMap {
999 return GetAttachmentsFromInlineBody(t, base.MustJSONMarshal(t, body))
1000}
1001
1002func GetChangeEntryCV(t *testing.T, entry *ChangeEntry) Version {
1003 require.NotNil(t, entry.Changes)

Calls 2

MustJSONMarshalFunction · 0.92