MCPcopy
hub / github.com/cli/cli / TestIsNone

Function TestIsNone

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

Source from the content-addressed store, hash-verified

164}
165
166func TestIsNone(t *testing.T) {
167 require.False(t, o.Some(42).IsNone())
168 require.True(t, o.None[int]().IsNone())
169}
170
171func TestSomeValue(t *testing.T) {
172 value, ok := o.Some(42).Value()

Callers

nothing calls this directly

Calls 1

IsNoneMethod · 0.80

Tested by

no test coverage detected