MCPcopy
hub / github.com/cli/cli / IsNone

Method IsNone

pkg/option/option.go:116–118  ·  view source on GitHub ↗

IsNone returns true if the [Option] is a [None] variant.

()

Source from the content-addressed store, hash-verified

114
115// IsNone returns true if the [Option] is a [None] variant.
116func (o Option[T]) IsNone() bool {
117 return !o.present
118}
119
120// Value returns the underlying value and true for a [Some] variant, or the
121// zero value and false for a [None] variant.

Callers 10

ParseIssuesFromArgsFunction · 0.80
getRunFunction · 0.80
MatchesMethod · 0.80
ExampleOption_IsNoneFunction · 0.80
TestIsNoneFunction · 0.80
TestMapFunction · 0.80

Calls

no outgoing calls

Tested by 6

ExampleOption_IsNoneFunction · 0.64
TestIsNoneFunction · 0.64
TestMapFunction · 0.64