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

Function TestSyncMap_Delete

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

Source from the content-addressed store, hash-verified

37}
38
39func TestSyncMap_Delete(t *testing.T) {
40 sm := MakeSyncMap[int]()
41 sm.Set("key1", 1)
42 sm.Delete("key1")
43 if sm.Get("key1") != 0 {
44 t.Errorf("expected 0, got %d", sm.Get("key1"))
45 }
46}

Callers

nothing calls this directly

Calls 3

SetMethod · 0.45
DeleteMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected