Documentation
¶
Overview ¶
Package email provides assertions for the opt-in memory email driver. Failure text deliberately excludes private message contents and recipient addresses.
Index ¶
- func AssertCount(t TestingT, driver *memory.Driver, want int)
- func AssertNotSent(t TestingT, driver *memory.Driver, match func(email.Message) bool)
- func AssertRecipientCount(t TestingT, driver *memory.Driver, recipient email.Address, want int)
- func AssertSent(t TestingT, driver *memory.Driver, match func(email.Message) bool)
- func AssertSentCount(t TestingT, driver *memory.Driver, match func(email.Message) bool, want int)
- func New(t testing.TB, capacity int) *memory.Driver
- type TestingT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertCount ¶
AssertCount reports a test error when the recorded message count differs from want.
func AssertNotSent ¶
AssertNotSent requires that no recorded message satisfies match.
func AssertRecipientCount ¶
AssertRecipientCount reports a test error when the count of messages addressed to the mailbox differs from want.
func AssertSent ¶
AssertSent requires at least one recorded message satisfying match (nil matches any). Failure text never includes message content or addresses.
func AssertSentCount ¶
AssertSentCount requires exactly want recorded messages satisfying match.
Types ¶
Click to show internal directories.
Click to hide internal directories.