MCPcopy
hub / github.com/kopia/kopia / TestConcurrentCountMap_Get_MissingKey

Function TestConcurrentCountMap_Get_MissingKey

internal/stats/count_map_test.go:10–17  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestConcurrentCountMap_Get_MissingKey(t *testing.T) {
11 var m CountersMap[string]
12
13 v, found := m.Get("missing")
14
15 require.False(t, found)
16 require.EqualValues(t, 0, v, "expected 0 for missing key")
17}
18
19func TestConcurrentCountMap_IncrementAndGet_NewAndExistingKey(t *testing.T) {
20 var m CountersMap[string]

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected