(t *testing.T)
| 295 | } |
| 296 | |
| 297 | func TestItems(t *testing.T) { |
| 298 | slm := NewShardLockMaps() |
| 299 | |
| 300 | for i := 0; i < 100; i++ { |
| 301 | slm.Set(strconv.Itoa(i), TestUser{strconv.Itoa(i)}) |
| 302 | } |
| 303 | |
| 304 | items := slm.Items() |
| 305 | |
| 306 | if len(items) != 100 { |
| 307 | t.Error("We should have counted 100 elements.") |
| 308 | } |
| 309 | |
| 310 | } |
| 311 | |
| 312 | func TestJsonMarshal(t *testing.T) { |
| 313 | expected := "{\"a\":1,\"b\":2}" |
nothing calls this directly
no test coverage detected