()
| 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 |
nothing calls this directly
no test coverage detected