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

Function assertRevTreeUnmarshal

db/revtree_test.go:190–194  ·  view source on GitHub ↗
(t *testing.T, jsonString string, expectedRevtree RevTree)

Source from the content-addressed store, hash-verified

188}
189
190func assertRevTreeUnmarshal(t *testing.T, jsonString string, expectedRevtree RevTree) bool {
191 var gotmap RevTree
192 require.NoError(t, base.JSONUnmarshal([]byte(jsonString), &gotmap), "Couldn't parse RevTree from JSON")
193 return assert.Equal(t, expectedRevtree, gotmap)
194}
195
196// Make sure that the getMultiBranchTestRevtree1() helper works as expected
197// (added in reaction to bug where it created broken trees/forests)

Calls 2

JSONUnmarshalFunction · 0.92
EqualMethod · 0.45

Tested by

no test coverage detected