1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +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" "testing"
) )
// CreateFormFile creates an [io.Writer] like [mime/multipart.Writer.CreateFromFile]. // TestCreateFormFile tests if CreateFormFile throws an error when creating
// This version allows to set the mime type, too. // a FormFile
func TestCreateFormFile(t *testing.T) { func TestCreateFormFile(t *testing.T) {
body := new(bytes.Buffer) body := new(bytes.Buffer)
writer := multipart.NewWriter(body) writer := multipart.NewWriter(body)