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