MCPcopy
hub / github.com/cli/cli / TestSomeValue

Function TestSomeValue

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

Source from the content-addressed store, hash-verified

169}
170
171func TestSomeValue(t *testing.T) {
172 value, ok := o.Some(42).Value()
173 require.Equal(t, value, 42)
174 require.True(t, ok)
175}
176
177func TestNoneValue(t *testing.T) {
178 value, ok := o.None[int]().Value()

Callers

nothing calls this directly

Calls 2

ValueMethod · 0.80
EqualMethod · 0.80

Tested by

no test coverage detected