mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 18:15:42 +01:00
Formatted TestCreateFormFile()
This commit is contained in:
parent
3de42e746d
commit
1f7d5ada14
1 changed files with 2 additions and 3 deletions
|
|
@ -20,8 +20,7 @@ func TestCreateFormFile(t *testing.T) {
|
||||||
body := new(bytes.Buffer)
|
body := new(bytes.Buffer)
|
||||||
writer := multipart.NewWriter(body)
|
writer := multipart.NewWriter(body)
|
||||||
|
|
||||||
_, err := CreateFormFile(writer, "csaf", "data", "application/json")
|
if _, err := CreateFormFile(writer, "csaf", "data", "application/json"); err != nil {
|
||||||
if err != nil {
|
t.Errorf("Failure: failed to create an io.Writer via CreateFormFile")
|
||||||
t.Errorf("failed to create an io.Writer via CreateFormFile")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue