Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoMessage = errors.New("no message sent")
ErrNoMessage is returned when no message was caught.
Functions ¶
This section is empty.
Types ¶
type MockSMTP ¶
type MockSMTP struct {
// contains filtered or unexported fields
}
MockSMTP is an in-memory implementation for buffalo `Sender` interface. It's intended to catch sent messages for test purposes.
func (*MockSMTP) LastMessage ¶
LastMessage gets the last sent message, if it exists. It returns `NoMessage` error if there is not last message.
Click to show internal directories.
Click to hide internal directories.