ShouldEnable reports whether the change with the given id should be enabled.
(id uint64)
| 347 | |
| 348 | // ShouldEnable reports whether the change with the given id should be enabled. |
| 349 | func (m *Matcher) ShouldEnable(id uint64) bool { |
| 350 | if m == nil { |
| 351 | return true |
| 352 | } |
| 353 | return m.matchResult(id) == m.enable |
| 354 | } |
| 355 | |
| 356 | // ShouldPrint reports whether to print identifying information about the change with the given id. |
| 357 | func (m *Matcher) ShouldPrint(id uint64) bool { |
no test coverage detected