Skip to content

Commit

Permalink
Increase the number of unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zjy282 committed Aug 1, 2023
1 parent 842b062 commit 62ce7dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func assertAPIErrorType(t *testing.T, apiErr APIError, typ string) {
}
}

func TestRequestErrorUnmarshalJSON(t *testing.T) {
func TestRequestError(t *testing.T) {
var err error = &RequestError{
HTTPStatusCode: http.StatusTeapot,
Err: errors.New("i am a teapot"),
Expand All @@ -200,7 +200,7 @@ func TestRequestErrorUnmarshalJSON(t *testing.T) {
}
}

func TestErrorResponse(t *testing.T) {
func TestErrorResponseUnmarshalJSON(t *testing.T) {
type testCase struct {
name string
response string
Expand Down

0 comments on commit 62ce7dc

Please sign in to comment.