()
| 402 | #[test] |
| 403 | fn parses_explicit_method() { |
| 404 | let parsed = parse_curl("curl -X DELETE https://api.example.com/users/1").unwrap(); |
| 405 | assert_eq!(parsed.method, HttpMethod::Delete); |
| 406 | assert_eq!(parsed.url, "https://api.example.com/users/1"); |
| 407 | } |
| 408 | |
| 409 | #[test] |
| 410 | fn parses_headers_and_json_body() { |
| 411 | let cmd = r#"curl -X POST 'https://api.example.com/users' \ |
| 412 | -H 'Content-Type: application/json' \ |
| 413 | -H 'Accept: application/json' \ |
nothing calls this directly
no test coverage detected