MCPcopy Create free account
hub / github.com/Azure/peerd / TestSyncMapBase

Function TestSyncMapBase

pkg/cache/syncmap_test.go:11–16  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestSyncMapBase(t *testing.T) {
12 sm := NewSyncMap(0)
13 if mapLen := len(*sm.mapObj); mapLen != 0 {
14 t.Fatalf("unexpected length of map: %d", mapLen)
15 }
16}
17
18func TestSyncMapAddEvict(t *testing.T) {
19 sm := NewSyncMap(100)

Callers

nothing calls this directly

Calls 1

NewSyncMapFunction · 0.85

Tested by

no test coverage detected