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

Function safe_write_creates_parent_dirs

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

Source from the content-addressed store, hash-verified

2211
2212 #[test]
2213 fn safe_write_creates_parent_dirs() {
2214 let dir = tmpdir();
2215 let path = dir.path().join("deep").join("nested").join("config.json");
2216 safe_write_json_file(&path, &serde_json::json!({"deep": true}), None).unwrap();
2217 assert!(path.exists());
2218 }
2219
2220 // ----- write_json_file (convenience wrapper) -----
2221

Callers

nothing calls this directly

Calls 2

tmpdirFunction · 0.85
safe_write_json_fileFunction · 0.85

Tested by

no test coverage detected