Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/cli/cli
/ TestIsNone
Function
TestIsNone
pkg/option/option_test.go:166–169 ·
view source on GitHub ↗
(t *testing.T)
Source
from the content-addressed store, hash-verified
164
}
165
166
func
TestIsNone(t *testing.T) {
167
require.False(t, o.Some(42).IsNone())
168
require.True(t, o.None[int]().IsNone())
169
}
170
171
func
TestSomeValue(t *testing.T) {
172
value, ok := o.Some(42).Value()
Callers
nothing calls this directly
Calls
1
IsNone
Method · 0.80
Tested by
no test coverage detected