MCPcopy Create free account
hub / github.com/bajrangCoder/setu / parses_basic_auth

Function parses_basic_auth

src/utils/curl_parser.rs:474–482  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

parse_curlFunction · 0.85

Tested by

no test coverage detected