Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/cli/cli
/ TestIsSome
Function
TestIsSome
pkg/option/option_test.go:161–164 ·
view source on GitHub ↗
(t *testing.T)
Source
from the content-addressed store, hash-verified
159
}
160
161
func
TestIsSome(t *testing.T) {
162
require.True(t, o.Some(42).IsSome())
163
require.False(t, o.None[int]().IsSome())
164
}
165
166
func
TestIsNone(t *testing.T) {
167
require.False(t, o.Some(42).IsNone())
Callers
nothing calls this directly
Calls
1
IsSome
Method · 0.80
Tested by
no test coverage detected