mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 18:15:42 +01:00
Cosmetics
This commit is contained in:
parent
1f7d5ada14
commit
21fbd401b7
5 changed files with 36 additions and 45 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue