(t *testing.T)
| 13 | } |
| 14 | |
| 15 | func TestCreatMap(t *testing.T) { |
| 16 | slm := NewShardLockMaps() |
| 17 | if slm.shards == nil { |
| 18 | t.Error("shardLockMaps is null.") |
| 19 | } |
| 20 | |
| 21 | if slm.Count() != 0 { |
| 22 | t.Error("new shardLockMaps should be empty.") |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | func TestSet(t *testing.T) { |
| 27 | slm := NewShardLockMaps() |
nothing calls this directly
no test coverage detected