(t *testing.T)
| 897 | } |
| 898 | |
| 899 | func TestSetFileUploadCheck(t *testing.T) { |
| 900 | c := tc() |
| 901 | resp, err := c.R().SetFileUpload(FileUpload{}).Post("/multipart") |
| 902 | tests.AssertErrorContains(t, err, "missing param name") |
| 903 | tests.AssertErrorContains(t, err, "missing filename") |
| 904 | tests.AssertErrorContains(t, err, "missing file content") |
| 905 | tests.AssertEqual(t, 0, len(resp.Request.uploadFiles)) |
| 906 | } |
| 907 | |
| 908 | func TestUploadMultipart(t *testing.T) { |
| 909 | m := make(map[string]any) |
nothing calls this directly
no test coverage detected
searching dependent graphs…