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