MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / parse_jsonc_url_in_string_not_stripped

Function parse_jsonc_url_in_string_not_stripped

src/agents/mod.rs:2009–2014  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

parse_jsoncFunction · 0.85

Tested by

no test coverage detected