()
| 2007 | |
| 2008 | #[test] |
| 2009 | fn parse_jsonc_url_in_string_not_stripped() { |
| 2010 | // A URL containing `//` inside a string must NOT be treated as a comment. |
| 2011 | let input = r#"{"url": "https://example.com/path"}"#; |
| 2012 | let v = parse_jsonc(input); |
| 2013 | assert_eq!(v["url"], "https://example.com/path"); |
| 2014 | } |
| 2015 | |
| 2016 | #[test] |
| 2017 | fn parse_jsonc_invalid_falls_back_to_empty() { |
nothing calls this directly
no test coverage detected