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)
| 123 | |
| 124 | // CreateTestSingleBackingStoreMap will create map of rev cache backing stores and assign the specified backing store to collection ID specified for testing purposes |
| 125 | func 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 |
| 132 | func TestLRURevisionCacheEviction(t *testing.T) { |
no outgoing calls
no test coverage detected