MCPcopy Index your code
hub / github.com/labstack/echo / createTestFormFile

Function createTestFormFile

bind_test.go:1535–1541  ·  view source on GitHub ↗
(formFieldName string, filename string)

Source from the content-addressed store, hash-verified

1533}
1534
1535func createTestFormFile(formFieldName string, filename string) testFormFile {
1536 return testFormFile{
1537 Fieldname: formFieldName,
1538 Filename: filename,
1539 Content: []byte(strings.Repeat(filename, 10)),
1540 }
1541}
1542
1543func bindMultipartFiles(t *testing.T, target any, files ...testFormFile) error {
1544 var body bytes.Buffer

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…