()
| 472 | |
| 473 | #[test] |
| 474 | fn handles_location_flag() { |
| 475 | let parsed = parse_curl("curl --location 'https://ssp.veonadx.com/bid/prebid'").unwrap(); |
| 476 | assert_eq!(parsed.url, "https://ssp.veonadx.com/bid/prebid"); |
| 477 | } |
| 478 | |
| 479 | #[test] |
| 480 | fn parses_real_world_multiline_curl() { |
| 481 | let cmd = r#"curl --location 'https://ssp.veonadx.com/bid/prebid' \ |
| 482 | --header 'Content-Type: application/json' \ |
| 483 | --data '{ |
| 484 | "id": "abc", |
| 485 | "test": 1 |
nothing calls this directly
no test coverage detected