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

Function TestRevTreeAddRevisionWithEmptyID

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

Source from the content-addressed store, hash-verified

347}
348
349func TestRevTreeAddRevisionWithEmptyID(t *testing.T) {
350 tempmap := testmap.copy()
351 assert.Equal(t, testmap, tempmap)
352
353 err := tempmap.addRevision("testdoc", RevInfo{Parent: "3-three"})
354 assert.Equal(t, fmt.Sprintf("doc: %v, RevTree addRevision, empty revid is illegal", "testdoc"), err.Error())
355}
356
357func TestRevTreeAddDuplicateRevID(t *testing.T) {
358 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