MatchStack assigns the current call stack a change ID. If the stack should be printed, MatchStack prints it. Then MatchStack reports whether a change at the current call stack should be enabled.
(w Writer)
| 430 | // If the stack should be printed, MatchStack prints it. |
| 431 | // Then MatchStack reports whether a change at the current call stack should be enabled. |
| 432 | func (m *Matcher) Stack(w Writer) bool { |
| 433 | if m == nil { |
| 434 | return true |
| 435 | } |
| 436 | return m.stack(w) |
| 437 | } |
| 438 | |
| 439 | // stack does the real work for Stack. |
| 440 | // This lets stack's body handle m == nil and potentially be inlined. |
no test coverage detected