(t *testing.T)
| 74 | } |
| 75 | |
| 76 | func TestHas(t *testing.T) { |
| 77 | slm := NewShardLockMaps() |
| 78 | |
| 79 | if slm.Has("Money") == true { |
| 80 | t.Error("element shouldn't exists") |
| 81 | } |
| 82 | |
| 83 | slm.Set("user", "14March") |
| 84 | |
| 85 | if slm.Has("user") == false { |
| 86 | t.Error("element exists, user Has to return True.") |
| 87 | } |
| 88 | |
| 89 | } |
| 90 | |
| 91 | func TestCount(t *testing.T) { |
| 92 | slm := NewShardLockMaps() |
nothing calls this directly
no test coverage detected