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

Function TestEncodeRevisions

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

Source from the content-addressed store, hash-verified

889}
890
891func TestEncodeRevisions(t *testing.T) {
892 encoded := encodeRevisions(base.TestCtx(t), t.Name(), []string{"5-huey", "4-dewey", "3-louie"})
893 assert.Equal(t, Revisions{RevisionsStart: 5, RevisionsIds: []string{"huey", "dewey", "louie"}}, encoded)
894}
895
896func TestEncodeRevisionsGap(t *testing.T) {
897 encoded := encodeRevisions(base.TestCtx(t), t.Name(), []string{"5-huey", "3-louie"})

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