(t *testing.T)
| 1260 | } |
| 1261 | |
| 1262 | func TestCache_SetWithoutCleanWindow(t *testing.T) { |
| 1263 | |
| 1264 | opt := DefaultConfig(time.Second) |
| 1265 | opt.CleanWindow = 0 |
| 1266 | opt.HardMaxCacheSize = 1 |
| 1267 | bc, _ := New(context.Background(), opt) |
| 1268 | |
| 1269 | err := bc.Set("2225", make([]byte, 200)) |
| 1270 | if nil != err { |
| 1271 | t.Error(err) |
| 1272 | t.FailNow() |
| 1273 | } |
| 1274 | } |
| 1275 | |
| 1276 | func TestCache_RepeatedSetWithBiggerEntry(t *testing.T) { |
| 1277 |
nothing calls this directly
no test coverage detected
searching dependent graphs…