(formFieldName string, filename string)
| 1533 | } |
| 1534 | |
| 1535 | func 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 | |
| 1543 | func bindMultipartFiles(t *testing.T, target any, files ...testFormFile) error { |
| 1544 | var body bytes.Buffer |
no outgoing calls
no test coverage detected
searching dependent graphs…