We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1336e0b commit 7310a51Copy full SHA for 7310a51
src/runner/test.rs
@@ -458,3 +458,11 @@ fn is_library(target: &Target) -> bool {
458
.iter()
459
.all(|k| !["example", "test", "bench"].contains(&k.as_str()))
460
}
461
+
462
463
+#[test]
464
+fn test_failure_reason() {
465
+ let error : failure::Error = CommandError::IO(std::io::Error::other("Test")).into();
466
+ assert_eq!(failure_reason(&error), FailureReason::Unknown);
467
+ assert_eq!(failure_reason(&error.context(FailureReason::ICE).into()), FailureReason::ICE);
468
+}
0 commit comments