Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ TestNoneStringer
Function
TestNoneStringer
pkg/option/option_test.go:120–122 ·
view source on GitHub ↗
(t *testing.T)
Source
from the content-addressed store, hash-verified
118
}
119
120
func
TestNoneStringer(t *testing.T) {
121
require.Equal(t, fmt.Sprintf(
"%s"
, o.None[string]()),
"None"
)
//nolint:gosimple
122
}
123
124
func
TestSomeUnwrap(t *testing.T) {
125
require.Equal(t, o.Some(42).Unwrap(), 42)
Callers
nothing calls this directly
Calls
1
Equal
Method · 0.80
Tested by
no test coverage detected