()
| 5351 | |
| 5352 | #[test] |
| 5353 | fn test_load_json_file_valid() { |
| 5354 | let dir = TempDir::new().unwrap(); |
| 5355 | let path = dir.path().join("test.json"); |
| 5356 | std::fs::write(&path, r#"{"key": "value"}"#).unwrap(); |
| 5357 | let val = load_json_file(&path); |
| 5358 | assert_eq!(val["key"], "value"); |
| 5359 | } |
| 5360 | |
| 5361 | #[test] |
| 5362 | fn test_load_json_file_invalid_returns_empty() { |
nothing calls this directly
no test coverage detected