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

Function TestSomeStringer

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

Source from the content-addressed store, hash-verified

113}
114
115func TestSomeStringer(t *testing.T) {
116 require.Equal(t, fmt.Sprintf("%s", o.Some("foo")), "Some(foo)") //nolint:gosimple
117 require.Equal(t, fmt.Sprintf("%s", o.Some(42)), "Some(42)") //nolint:gosimple
118}
119
120func TestNoneStringer(t *testing.T) {
121 require.Equal(t, fmt.Sprintf("%s", o.None[string]()), "None") //nolint:gosimple

Callers

nothing calls this directly

Calls 1

EqualMethod · 0.80

Tested by

no test coverage detected