(t *testing.T)
| 55 | } |
| 56 | |
| 57 | func Test_LRUFastCache_GetAllEntries(t *testing.T) { |
| 58 | RegisterTestingT(t) |
| 59 | |
| 60 | unit := cache.NewDefaultLRUCache() |
| 61 | |
| 62 | unit.Set(testKey1, testValue1) |
| 63 | unit.Set(testKey2, testValue2) |
| 64 | |
| 65 | entries, err := unit.GetAllEntries() |
| 66 | Expect(err).To(BeNil()) |
| 67 | |
| 68 | Expect(entries).To(HaveLen(2)) |
| 69 | Expect(entries).To(HaveKeyWithValue(testKey1, testValue1)) |
| 70 | Expect(entries).To(HaveKeyWithValue(testKey2, testValue2)) |
| 71 | } |
| 72 | |
| 73 | func Test_LRUFastCache_GetRecordCount(t *testing.T) { |
| 74 | RegisterTestingT(t) |
nothing calls this directly
no test coverage detected