(t *testing.T)
| 260 | } |
| 261 | |
| 262 | func TestClear(t *testing.T) { |
| 263 | slm := NewShardLockMaps() |
| 264 | |
| 265 | for i := 0; i < 100; i++ { |
| 266 | slm.Set(strconv.Itoa(i), TestUser{strconv.Itoa(i)}) |
| 267 | } |
| 268 | |
| 269 | slm.Clear() |
| 270 | |
| 271 | if slm.Count() != 0 { |
| 272 | t.Error("should have 0 elements.") |
| 273 | } |
| 274 | } |
| 275 | |
| 276 | func TestIterCb(t *testing.T) { |
| 277 | slm := NewShardLockMaps() |
nothing calls this directly
no test coverage detected