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

Method contains

db/revtree.go:271–274  ·  view source on GitHub ↗

Returns true if the RevTree has an entry for this revid.

(revid string)

Source from the content-addressed store, hash-verified

269
270// Returns true if the RevTree has an entry for this revid.
271func (tree RevTree) contains(revid string) bool {
272 _, exists := tree[revid]
273 return exists
274}
275
276// Returns the RevInfo for a revision ID, or panics if it's not found
277func (tree RevTree) getInfo(revid string) (*RevInfo, error) {

Callers 8

isLeafMethod · 0.95
addRevisionMethod · 0.95
TestRevTreeAccessFunction · 0.80
getRevisionMethod · 0.80
revTreeConflictCheckMethod · 0.80
RevDiffMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestRevTreeAccessFunction · 0.64