1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 18:15:42 +01:00

Cosmetics

This commit is contained in:
Sascha L. Teichmann 2023-09-25 13:05:53 +02:00
parent 1f7d5ada14
commit 21fbd401b7
5 changed files with 36 additions and 45 deletions

View file

@ -9,7 +9,7 @@
package misc
import (
"bytes"
"io"
"mime/multipart"
"testing"
)
@ -17,8 +17,7 @@ import (
// TestCreateFormFile tests if CreateFormFile throws an error when creating
// a FormFile
func TestCreateFormFile(t *testing.T) {
body := new(bytes.Buffer)
writer := multipart.NewWriter(body)
writer := multipart.NewWriter(io.Discard)
if _, err := CreateFormFile(writer, "csaf", "data", "application/json"); err != nil {
t.Errorf("Failure: failed to create an io.Writer via CreateFormFile")