MCPcopy
hub / github.com/cli/cli / TestNoneValue

Function TestNoneValue

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

Source from the content-addressed store, hash-verified

175}
176
177func TestNoneValue(t *testing.T) {
178 value, ok := o.None[int]().Value()
179 require.Equal(t, value, 0)
180 require.False(t, ok)
181}
182
183func TestSomeExpect(t *testing.T) {
184 require.Equal(t, o.Some(42).Expect("oops"), 42)

Callers

nothing calls this directly

Calls 2

ValueMethod · 0.80
EqualMethod · 0.80

Tested by

no test coverage detected