Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/cli/cli
/ TestSomeExpect
Function
TestSomeExpect
pkg/option/option_test.go:183–185 ·
view source on GitHub ↗
(t *testing.T)
Source
from the content-addressed store, hash-verified
181
}
182
183
func
TestSomeExpect(t *testing.T) {
184
require.Equal(t, o.Some(42).Expect(
"oops"
), 42)
185
}
186
187
func
TestNoneExpect(t *testing.T) {
188
defer
func
() {
Callers
nothing calls this directly
Calls
2
Equal
Method · 0.80
Expect
Method · 0.80
Tested by
no test coverage detected