MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / test_empty_benchmarks_array

Function test_empty_benchmarks_array

src/executor/wall_time/helpers.rs:251–259  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 4

empty_benchmarks_jsonFunction · 0.85
write_json_fileMethod · 0.80
pathMethod · 0.80

Tested by

no test coverage detected