1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 17:47:03 +00:00

corrected tests

This commit is contained in:
Tomasz Wojtuń
2016-09-01 17:25:24 +02:00
committed by James Hillyerd
parent 124f830478
commit 02eee0a608
6 changed files with 39 additions and 1 deletions

View File

@@ -70,6 +70,11 @@ func (m *MockMessage) From() string {
return args.String(0)
}
func (m *MockMessage) To() string {
args := m.Called()
return args.String(0)
}
func (m *MockMessage) Date() time.Time {
args := m.Called()
return args.Get(0).(time.Time)