Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
39
func
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
Set
Method · 0.45
Delete
Method · 0.45
Get
Method · 0.45
Tested by
no test coverage detected