MCPcopy
hub / github.com/cornelk/hashmap / TestGetNonExistingItem

Function TestGetNonExistingItem

hashmap_test.go:155–161  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

153}
154
155func TestGetNonExistingItem(t *testing.T) {
156 t.Parallel()
157 m := New[int, string]()
158 value, ok := m.Get(1)
159 assert.False(t, ok)
160 assert.Equal(t, "", value)
161}
162
163func TestGrow(t *testing.T) {
164 t.Parallel()

Callers

nothing calls this directly

Calls 4

FalseFunction · 0.92
EqualFunction · 0.92
NewFunction · 0.85
GetMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…