From 62ce7dc4f439978a66fa02f2f30c29e9cb218413 Mon Sep 17 00:00:00 2001 From: zhangxm Date: Tue, 1 Aug 2023 09:48:09 +0800 Subject: [PATCH] Increase the number of unit tests --- error_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/error_test.go b/error_test.go index f7d8de4c3..6e82c9ea2 100644 --- a/error_test.go +++ b/error_test.go @@ -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"), @@ -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