MCPcopy Create free account
hub / github.com/cel-expr/cel-go / HasExplanation

Method HasExplanation

policy/parser.go:336–338  ·  view source on GitHub ↗

HasExplanation indicates whether the explanation field is set of the match.

()

Source from the content-addressed store, hash-verified

334
335// HasExplanation indicates whether the explanation field is set of the match.
336func (m *Match) HasExplanation() bool {
337 return m.explanation != nil
338}
339
340// Explanation returns the explanation expression, or empty expression if output is not set.
341func (m *Match) Explanation() ValueString {

Callers 2

ExplanationMethod · 0.95
ParseMatchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected