Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
196
func
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
Equal
Method · 0.80
Map
Method · 0.80
IsNone
Method · 0.80
Tested by
no test coverage detected