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

Updated mime_test.go's function documentation

This commit is contained in:
JanHoefelmeyer 2023-09-25 11:16:47 +02:00
parent b06c316ee0
commit 22e6d49f3f

View file

@ -14,8 +14,8 @@ import (
"testing"
)
// CreateFormFile creates an [io.Writer] like [mime/multipart.Writer.CreateFromFile].
// This version allows to set the mime type, too.
// TestCreateFormFile tests if CreateFormFile throws an error when creating
// a FormFile
func TestCreateFormFile(t *testing.T) {
body := new(bytes.Buffer)
writer := multipart.NewWriter(body)