Skip to content

Commit

Permalink
style: gofumpt
Browse files Browse the repository at this point in the history
  • Loading branch information
ViolaPioggia committed Feb 16, 2024
1 parent b71bf69 commit 8fbb9d5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions adaptor/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ func TestForm(t *testing.T) {
return
}
assert.DeepEqual(t, req.FormValue("form_data"), "value")
//assert.DeepEqual(t, req.MultipartForm.Value["multiform_data"][0], "value")
// assert.DeepEqual(t, req.MultipartForm.Value["multiform_data"][0], "value")

}

Expand All @@ -444,11 +444,10 @@ func TestForm(t *testing.T) {
req.SetMethod("POST")

req.SetFormData(map[string]string{"form_data": "value"})
//req.SetMultipartFormData(map[string]string{"multiform_data": "value"})
// req.SetMultipartFormData(map[string]string{"multiform_data": "value"})

err := c.Do(context.Background(), req, resp)
assert.Nil(t, err)

}

func TestMultiForm(t *testing.T) {
Expand All @@ -464,7 +463,6 @@ func TestMultiForm(t *testing.T) {
return
}
assert.DeepEqual(t, req.FormValue("multiform_data"), "value")

}

hertzHandler := NewHertzHTTPHandler(http.HandlerFunc(handler))
Expand All @@ -491,7 +489,6 @@ func TestMultiForm(t *testing.T) {

err := c.Do(context.Background(), req, resp)
assert.Nil(t, err)

}

//func TestFile(t *testing.T) {
Expand Down

0 comments on commit 8fbb9d5

Please sign in to comment.