(t *testing.T)
| 89 | } |
| 90 | |
| 91 | func TestCount(t *testing.T) { |
| 92 | slm := NewShardLockMaps() |
| 93 | for i := 0; i < 100; i++ { |
| 94 | slm.Set(strconv.Itoa(i), TestUser{strconv.Itoa(i)}) |
| 95 | } |
| 96 | |
| 97 | if slm.Count() != 100 { |
| 98 | t.Error("Expecting 100 element within map.") |
| 99 | } |
| 100 | |
| 101 | } |
| 102 | |
| 103 | func TestRemove(t *testing.T) { |
| 104 | slm := NewShardLockMaps() |
nothing calls this directly
no test coverage detected