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

Function strict_load_errors_on_truncated_json

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

Source from the content-addressed store, hash-verified

2131
2132 #[test]
2133 fn strict_load_errors_on_truncated_json() {
2134 let dir = tmpdir();
2135 let path = dir.path().join("trunc.json");
2136 fs::write(&path, r#"{"key": "value", "incomplete"#).unwrap();
2137 assert!(load_json_file_strict(&path).is_err());
2138 }
2139
2140 // ----- load_jsonc_file_strict -----
2141

Callers

nothing calls this directly

Calls 2

tmpdirFunction · 0.85
writeFunction · 0.85

Tested by

no test coverage detected