(t *testing.T)
| 345 | } |
| 346 | |
| 347 | func TestKeys(t *testing.T) { |
| 348 | slm := NewShardLockMaps() |
| 349 | |
| 350 | for i := 0; i < 100; i++ { |
| 351 | slm.Set(strconv.Itoa(i), TestUser{strconv.Itoa(i)}) |
| 352 | } |
| 353 | |
| 354 | keys := slm.Keys() |
| 355 | if len(keys) != 100 { |
| 356 | t.Error("We should have counted 100 elements.") |
| 357 | } |
| 358 | } |
| 359 | |
| 360 | func TestFnv32(t *testing.T) { |
| 361 | key := []byte("ABC") |
nothing calls this directly
no test coverage detected