()
| 1011 | |
| 1012 | #[test] |
| 1013 | fn test_context_mark_failed() { |
| 1014 | let mut context = ApplyContext::with_defaults(); |
| 1015 | |
| 1016 | assert!(!context.has_failed()); |
| 1017 | context.mark_failed("test failure"); |
| 1018 | assert!(context.has_failed()); |
| 1019 | assert_eq!(context.failure_reason(), Some("test failure")); |
| 1020 | } |
| 1021 | |
| 1022 | #[test] |
| 1023 | fn test_context_should_continue() { |
nothing calls this directly
no test coverage detected