Added tests for roundtrip and register #4

Closed
dm wants to merge 3 commits from dm/email into email
Showing only changes of commit 9b64f8351a - Show all commits

View File

@ -52,3 +52,12 @@ func (e Email) Send(to mail.Address, msg string) error {
} }
return err return err
} }
type mockMail struct {
msg string
}
func (m *mockMail) Send(to mail.Address, msg string) error {
m.msg = msg
return nil
}