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

Function CreateTestSingleBackingStoreMap

db/revision_cache_test.go:125–129  ·  view source on GitHub ↗

CreateTestSingleBackingStoreMap will create map of rev cache backing stores and assign the specified backing store to collection ID specified for testing purposes

(backingStore RevisionCacheBackingStore, collectionID uint32)

Source from the content-addressed store, hash-verified

123
124// CreateTestSingleBackingStoreMap will create map of rev cache backing stores and assign the specified backing store to collection ID specified for testing purposes
125func CreateTestSingleBackingStoreMap(backingStore RevisionCacheBackingStore, collectionID uint32) map[uint32]RevisionCacheBackingStore {
126 backingStoreMap := make(map[uint32]RevisionCacheBackingStore)
127 backingStoreMap[collectionID] = backingStore
128 return backingStoreMap
129}
130
131// Tests the eviction from the LRURevisionCache
132func TestLRURevisionCacheEviction(t *testing.T) {

Calls

no outgoing calls

Tested by

no test coverage detected