oauth2/google/internal/oauth/err_test.go

16 lines
362 B
Go
Raw Normal View History

package externalaccount
import "testing"
func TestError_Generator(t *testing.T) {
e := Error{
"42",
"http:thisIsAPlaceholder",
"The Answer!",
}
output := "got error code " + "42" + " from " + "http:thisIsAPlaceholder" + ": " + "The Answer!"
if got, want := e, output; e.Error() != output {
t.Errorf("Got error message %q; want %q", got, want)
}
2020-10-06 04:18:45 -04:00
}