()
| 249 | |
| 250 | #[test] |
| 251 | fn test_empty_benchmarks_array() { |
| 252 | let profile = TestProfileFolder::new(); |
| 253 | profile.write_json_file("results.json", &empty_benchmarks_json()); |
| 254 | |
| 255 | let result = validate_walltime_results(profile.path(), false); |
| 256 | assert!(result.is_err()); |
| 257 | let error = result.unwrap_err().to_string(); |
| 258 | assert!(error.contains("No benchmarks found in walltime results file")); |
| 259 | } |
| 260 | |
| 261 | #[test] |
| 262 | fn test_invalid_json_format() { |
nothing calls this directly
no test coverage detected