MCPcopy Index your code
hub / github.com/SpectoLabs/hoverfly / Test_LRUFastCache_GetRecordCount

Function Test_LRUFastCache_GetRecordCount

core/cache/lru_fastcache_test.go:73–85  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

71}
72
73func Test_LRUFastCache_GetRecordCount(t *testing.T) {
74 RegisterTestingT(t)
75
76 unit := cache.NewDefaultLRUCache()
77
78 unit.Set(testKey1, testValue1)
79 unit.Set(testKey2, testValue2)
80
81 recordCount, err := unit.RecordsCount()
82 Expect(err).To(BeNil())
83
84 Expect(recordCount).To(Equal(2))
85}
86
87func Test_LRUFastCache_DeleteData(t *testing.T) {
88 RegisterTestingT(t)

Callers

nothing calls this directly

Calls 3

NewDefaultLRUCacheFunction · 0.92
SetMethod · 0.65
RecordsCountMethod · 0.65

Tested by

no test coverage detected