(t *testing.T)
| 71 | } |
| 72 | |
| 73 | func 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 | |
| 87 | func Test_LRUFastCache_DeleteData(t *testing.T) { |
| 88 | RegisterTestingT(t) |
nothing calls this directly
no test coverage detected