MCPcopy Index your code
hub / github.com/aceld/zinx / TestHas

Function TestHas

zutils/shard_lock_map_test.go:76–89  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

74}
75
76func 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
91func TestCount(t *testing.T) {
92 slm := NewShardLockMaps()

Callers

nothing calls this directly

Calls 4

HasMethod · 0.95
SetMethod · 0.95
NewShardLockMapsFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected