Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ TestSomeUnwrapOr
Function
TestSomeUnwrapOr
pkg/option/option_test.go:137–139 ·
view source on GitHub ↗
(t *testing.T)
Source
from the content-addressed store, hash-verified
135
}
136
137
func
TestSomeUnwrapOr(t *testing.T) {
138
require.Equal(t, o.Some(42).UnwrapOr(3), 42)
139
}
140
141
func
TestNoneUnwrapOr(t *testing.T) {
142
require.Equal(t, o.None[int]().UnwrapOr(3), 3)
Callers
nothing calls this directly
Calls
2
Equal
Method · 0.80
UnwrapOr
Method · 0.80
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…