MCPcopy
hub / github.com/aceld/zinx / TestCreatMap

Function TestCreatMap

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

Source from the content-addressed store, hash-verified

13}
14
15func 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
26func TestSet(t *testing.T) {
27 slm := NewShardLockMaps()

Callers

nothing calls this directly

Calls 3

CountMethod · 0.95
NewShardLockMapsFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected