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

Method Explanation

policy/parser.go:341–346  ·  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

339
340// Explanation returns the explanation expression, or empty expression if output is not set.
341func (m *Match) Explanation() ValueString {
342 if m.HasExplanation() {
343 return *m.explanation
344 }
345 return ValueString{}
346}
347
348// HasRule indicates whether the rule field is set on a match.
349func (m *Match) HasRule() bool {

Callers

nothing calls this directly

Calls 1

HasExplanationMethod · 0.95

Tested by

no test coverage detected