MCPcopy 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
137func TestSomeUnwrapOr(t *testing.T) {
138 require.Equal(t, o.Some(42).UnwrapOr(3), 42)
139}
140
141func TestNoneUnwrapOr(t *testing.T) {
142 require.Equal(t, o.None[int]().UnwrapOr(3), 3)

Callers

nothing calls this directly

Calls 2

EqualMethod · 0.80
UnwrapOrMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…