forked from remote/oauth2
Changed directory structure.
This commit is contained in:
15
google/internal/externalaccount/err_test.go
Normal file
15
google/internal/externalaccount/err_test.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package externalaccount
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestError_Generator(t *testing.T) {
|
||||
e := Error{
|
||||
"42",
|
||||
"http:thisIsAPlaceholder",
|
||||
"The Answer!",
|
||||
}
|
||||
want := "got error code 42 from http:thisIsAPlaceholder: The Answer!"
|
||||
if got := e.Error(); got != want {
|
||||
t.Errorf("Got error message %q; want %q", got, want)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user