sendgrid/sendgrid-go — pull request #16 by Xercoy (2014-09-02 17:35:02+00:00)
Title: Modified TestSend in sendgrid_test.go to check return value of Send

In sendgrid_test.go, TestSend does not verify whether the call to Send returns nil or not. Hence, TestSend will never fail even if a non nil value is returned.

The changes I've made simply verifies whether the value returned by Send is nil or not. If nil is returned then Send was successful. If not, t.Errorf is called accordingly and displays the returned error message.

Please let me know if you'd like me to change the output of Errorf.