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

Function TestRevTreeAddDuplicateRevID

db/revtree_test.go:357–363  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

355}
356
357func TestRevTreeAddDuplicateRevID(t *testing.T) {
358 tempmap := testmap.copy()
359 assert.Equal(t, testmap, tempmap)
360
361 err := tempmap.addRevision("testdoc", RevInfo{ID: "2-two", Parent: "1-one"})
362 assert.Equal(t, fmt.Sprintf("doc: %v, RevTree addRevision, already contains rev %q", "testdoc", "2-two"), err.Error())
363}
364
365func TestRevTreeAddRevisionWithMissingParent(t *testing.T) {
366 tempmap := testmap.copy()

Callers

nothing calls this directly

Calls 4

addRevisionMethod · 0.80
copyMethod · 0.45
EqualMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected