()
| 1056 | |
| 1057 | #[test] |
| 1058 | fn test_context_finish_failure() { |
| 1059 | let mut context = ApplyContext::with_defaults(); |
| 1060 | context.mark_failed("test failure reason"); |
| 1061 | |
| 1062 | let outcome = context.finish(); |
| 1063 | |
| 1064 | assert!(outcome.is_failure()); |
| 1065 | assert!(!outcome.is_success()); |
| 1066 | assert_eq!(outcome.failure_reason(), Some("test failure reason")); |
| 1067 | } |
| 1068 | |
| 1069 | #[test] |
| 1070 | fn test_context_stats_mut() { |
nothing calls this directly
no test coverage detected