()
| 510 | parse_curl("curl -G 'https://api.test/search?existing=1' --data 'q=abc'").unwrap(); |
| 511 | assert_eq!(parsed.url, "https://api.test/search?existing=1&q=abc"); |
| 512 | assert!(matches!(parsed.body, RequestBody::None)); |
| 513 | } |
| 514 | |
| 515 | #[test] |
| 516 | fn form_field_with_at_prefix_is_file_upload() { |
| 517 | let parsed = |
| 518 | parse_curl("curl https://api.test -F 'avatar=@/tmp/a.png' -F 'name=alice'").unwrap(); |
| 519 | match &parsed.body { |
| 520 | RequestBody::MultipartFormData(fields) => { |
nothing calls this directly
no test coverage detected