Explanation returns the explanation expression, or empty expression if output is not set.
()
| 381 | |
| 382 | // Explanation returns the explanation expression, or empty expression if output is not set. |
| 383 | func (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. |
| 391 | func (m *Match) HasRule() bool { |
nothing calls this directly
no test coverage detected