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

Function test_parse_jsonc

tests/agent_suite/agent_test.rs:5632–5641  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5630
5631#[test]
5632fn test_parse_jsonc() {
5633 let input = r#"{
5634 // line comment
5635 "a": 1,
5636 /* block */ "b": 2,
5637 }"#;
5638 let val = parse_jsonc(input);
5639 assert_eq!(val["a"], 1);
5640 assert_eq!(val["b"], 2);
5641}
5642
5643// ---------------------------------------------------------------------------
5644// 7. is_detected / has_tracedecay tests

Callers

nothing calls this directly

Calls 1

parse_jsoncFunction · 0.85

Tested by

no test coverage detected