MCPcopy
hub / github.com/cli/cli / TestIsSome

Function TestIsSome

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

Source from the content-addressed store, hash-verified

159}
160
161func TestIsSome(t *testing.T) {
162 require.True(t, o.Some(42).IsSome())
163 require.False(t, o.None[int]().IsSome())
164}
165
166func TestIsNone(t *testing.T) {
167 require.False(t, o.Some(42).IsNone())

Callers

nothing calls this directly

Calls 1

IsSomeMethod · 0.80

Tested by

no test coverage detected