@@ -35,7 +35,7 @@ func newTestClient(fn roundTripFunc) *http.Client {
35
35
36
36
func TestGet (t * testing.T ) {
37
37
require := require .New (t )
38
- defaultResponseFunc := func (req * http.Request ) * http.Response {
38
+ defaultResponseFunc := func (_ * http.Request ) * http.Response {
39
39
response := server.GeneralResponse {
40
40
Message : "response message" ,
41
41
Data : "response data" ,
@@ -77,7 +77,7 @@ func TestGet(t *testing.T) {
77
77
wantErr : true ,
78
78
},
79
79
"server error" : {
80
- roundTripFunc : func (req * http.Request ) * http.Response {
80
+ roundTripFunc : func (_ * http.Request ) * http.Response {
81
81
return & http.Response {
82
82
StatusCode : http .StatusInternalServerError ,
83
83
Body : io .NopCloser (& bytes.Reader {}),
@@ -111,7 +111,7 @@ func TestGet(t *testing.T) {
111
111
112
112
func TestPost (t * testing.T ) {
113
113
require := require .New (t )
114
- defaultResponseFunc := func (req * http.Request ) * http.Response {
114
+ defaultResponseFunc := func (_ * http.Request ) * http.Response {
115
115
response := server.GeneralResponse {
116
116
Message : "response message" ,
117
117
Data : "response data" ,
@@ -142,7 +142,7 @@ func TestPost(t *testing.T) {
142
142
wantResponse : []byte ("response data" ),
143
143
},
144
144
"server error" : {
145
- roundTripFunc : func (req * http.Request ) * http.Response {
145
+ roundTripFunc : func (_ * http.Request ) * http.Response {
146
146
return & http.Response {
147
147
StatusCode : http .StatusInternalServerError ,
148
148
Body : io .NopCloser (& bytes.Reader {}),
0 commit comments