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

Method Explanation

policy/parser.go:383–388  ·  view source on GitHub ↗

Explanation returns the explanation expression, or empty expression if output is not set.

()

Source from the content-addressed store, hash-verified

381
382// Explanation returns the explanation expression, or empty expression if output is not set.
383func (m *Match) Explanation() ValueString {
384 if m.HasExplanation() {
385 return *m.explanation
386 }
387 return ValueString{}
388}
389
390// HasRule indicates whether the rule field is set on a match.
391func (m *Match) HasRule() bool {

Callers

nothing calls this directly

Calls 1

HasExplanationMethod · 0.95

Tested by

no test coverage detected