MCPcopy
hub / github.com/cli/cli / TestMap

Function TestMap

pkg/option/option_test.go:196–199  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

194}
195
196func TestMap(t *testing.T) {
197 require.Equal(t, o.Map(o.Some(2), double), o.Some(4))
198 require.True(t, o.Map(o.None[int](), double).IsNone())
199}

Callers

nothing calls this directly

Calls 3

EqualMethod · 0.80
MapMethod · 0.80
IsNoneMethod · 0.80

Tested by

no test coverage detected