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:
parent
b06c316ee0
commit
22e6d49f3f
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue