Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/docker/docker-agent
/ TestMap_ClearZeroValue
Function
TestMap_ClearZeroValue
pkg/concurrent/map_test.go:220–225 ·
view source on GitHub ↗
(t *testing.T)
Source
from the content-addressed store, hash-verified
218
}
219
220
func
TestMap_ClearZeroValue(t *testing.T) {
221
t.Parallel()
222
var
m Map[string, int]
223
m.Clear()
// should not panic on zero-value map
224
assert.Equal(t, 0, m.Length())
225
}
Callers
nothing calls this directly
Calls
2
Clear
Method · 0.65
Length
Method · 0.45
Tested by
no test coverage detected