MCPcopy Create free account
hub / github.com/cli/cli / TestSomeUnwrapOrZero

Function TestSomeUnwrapOrZero

pkg/option/option_test.go:153–155  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

151}
152
153func TestSomeUnwrapOrZero(t *testing.T) {
154 require.Equal(t, o.Some(42).UnwrapOrZero(), 42)
155}
156
157func TestNoneUnwrapOrZero(t *testing.T) {
158 require.Equal(t, o.None[int]().UnwrapOrZero(), 0)

Callers

nothing calls this directly

Calls 2

EqualMethod · 0.80
UnwrapOrZeroMethod · 0.80

Tested by

no test coverage detected