(t *testing.T)
| 326 | } |
| 327 | |
| 328 | func TestUnmarshalJSON(t *testing.T) { |
| 329 | slm := NewShardLockMaps() |
| 330 | bytes := []byte("{\"ccc\":1,\"ddd\":2}") |
| 331 | |
| 332 | err := slm.UnmarshalJSON(bytes) |
| 333 | if err != nil { |
| 334 | t.Error(err) |
| 335 | } |
| 336 | |
| 337 | if slm.Count() != 2 { |
| 338 | t.Error("Expecting count to be 2 once item was removed.") |
| 339 | } |
| 340 | |
| 341 | for _, shard := range slm.shards { |
| 342 | fmt.Printf("%+v \n", shard.items) |
| 343 | } |
| 344 | |
| 345 | } |
| 346 | |
| 347 | func TestKeys(t *testing.T) { |
| 348 | slm := NewShardLockMaps() |
nothing calls this directly
no test coverage detected