ShouldPrint reports whether to print identifying information about the change with the given id.
(id uint64)
| 355 | |
| 356 | // ShouldPrint reports whether to print identifying information about the change with the given id. |
| 357 | func (m *Matcher) ShouldPrint(id uint64) bool { |
| 358 | if m == nil || m.quiet { |
| 359 | return false |
| 360 | } |
| 361 | return m.matchResult(id) |
| 362 | } |
| 363 | |
| 364 | // matchResult returns the result from the first condition that matches id. |
| 365 | func (m *Matcher) matchResult(id uint64) bool { |
no test coverage detected