MCPcopy
hub / github.com/wavetermdev/waveterm / TestSyncMap_Set

Function TestSyncMap_Set

pkg/util/ds/syncmap_test.go:7–13  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

5)
6
7func TestSyncMap_Set(t *testing.T) {
8 sm := MakeSyncMap[int]()
9 sm.Set("key1", 1)
10 if sm.Get("key1") != 1 {
11 t.Errorf("expected 1, got %d", sm.Get("key1"))
12 }
13}
14
15func TestSyncMap_Get(t *testing.T) {
16 sm := MakeSyncMap[int]()

Callers

nothing calls this directly

Calls 2

SetMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected