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

Function TestNoneUnwrapOrZero

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

Source from the content-addressed store, hash-verified

155}
156
157func TestNoneUnwrapOrZero(t *testing.T) {
158 require.Equal(t, o.None[int]().UnwrapOrZero(), 0)
159}
160
161func TestIsSome(t *testing.T) {
162 require.True(t, o.Some(42).IsSome())

Callers

nothing calls this directly

Calls 2

EqualMethod · 0.80
UnwrapOrZeroMethod · 0.80

Tested by

no test coverage detected