MCPcopy Create free account
hub / github.com/riverqueue/river / TestKeys

Function TestKeys

rivershared/util/maputil/map_util_test.go:10–19  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestKeys(t *testing.T) {
11 t.Parallel()
12
13 is := require.New(t)
14
15 r1 := Keys(map[string]int{"foo": 1, "bar": 2})
16 sort.Strings(r1)
17
18 is.Equal([]string{"bar", "foo"}, r1)
19}
20
21func TestValues(t *testing.T) {
22 t.Parallel()

Callers

nothing calls this directly

Calls 1

KeysFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…