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

Function test_invalid_json_format

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

Source from the content-addressed store, hash-verified

260
261 #[test]
262 fn test_invalid_json_format() {
263 let profile = TestProfileFolder::new();
264 profile.write_json_file("results.json", "{ invalid json }");
265
266 let result = validate_walltime_results(profile.path(), false);
267 assert!(result.is_err());
268 let error = result.unwrap_err().to_string();
269 assert!(error.contains("Failed to parse walltime results from"));
270 }
271
272 #[test]
273 fn test_multiple_files_one_empty() {

Callers

nothing calls this directly

Calls 3

write_json_fileMethod · 0.80
pathMethod · 0.80

Tested by

no test coverage detected