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

Function TestEncodeRevisionsZero

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

Source from the content-addressed store, hash-verified

899}
900
901func TestEncodeRevisionsZero(t *testing.T) {
902 encoded := encodeRevisions(base.TestCtx(t), t.Name(), []string{"1-foo", "0-bar"})
903 assert.Equal(t, Revisions{RevisionsStart: 1, RevisionsIds: []string{"foo", ""}}, encoded)
904}
905
906func TestTrimEncodedRevisionsToAncestor(t *testing.T) {
907 ctx := base.TestCtx(t)

Callers

nothing calls this directly

Calls 4

TestCtxFunction · 0.92
encodeRevisionsFunction · 0.85
NameMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected