Reset clears any previously test collected data.
()
| 26 | |
| 27 | // Reset clears any previously test collected data. |
| 28 | func (tm *TestMailer) Reset() { |
| 29 | tm.mux.Lock() |
| 30 | defer tm.mux.Unlock() |
| 31 | |
| 32 | tm.messages = nil |
| 33 | } |
| 34 | |
| 35 | // TotalSend returns the total number of sent messages. |
| 36 | func (tm *TestMailer) TotalSend() int { |