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

Method HasExplanation

policy/parser.go:378–380  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

376
377// HasExplanation indicates whether the explanation field is set of the match.
378func (m *Match) HasExplanation() bool {
379 return m.explanation != nil
380}
381
382// Explanation returns the explanation expression, or empty expression if output is not set.
383func (m *Match) Explanation() ValueString {

Callers 2

ExplanationMethod · 0.95
parseMatchInternalMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected