You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
871 B
39 lines
871 B
package email |
|
|
|
import ( |
|
"testing" |
|
|
|
"github.com/smartystreets/goconvey/convey" |
|
) |
|
|
|
func TestEmailSendMail(t *testing.T) { |
|
convey.Convey("SendMail", t, func(ctx convey.C) { |
|
var ( |
|
body = "" |
|
subject = "" |
|
send = "" |
|
) |
|
ctx.Convey("When everything goes positive", func(ctx convey.C) { |
|
err := d.SendMail(body, subject, send) |
|
ctx.Convey("Then err should be nil.", func(ctx convey.C) { |
|
ctx.So(err, convey.ShouldNotBeNil) |
|
}) |
|
}) |
|
}) |
|
} |
|
|
|
func TestEmailSendMailAttach(t *testing.T) { |
|
convey.Convey("SendMailAttach", t, func(ctx convey.C) { |
|
var ( |
|
filename = "" |
|
subject = "" |
|
send = []string{} |
|
) |
|
ctx.Convey("When everything goes positive", func(ctx convey.C) { |
|
err := d.SendMailAttach(filename, subject, send) |
|
ctx.Convey("Then err should be nil.", func(ctx convey.C) { |
|
ctx.So(err, convey.ShouldNotBeNil) |
|
}) |
|
}) |
|
}) |
|
}
|
|
|