()
| 1042 | |
| 1043 | #[test] |
| 1044 | fn test_context_finish_success() { |
| 1045 | let mut context = ApplyContext::with_defaults(); |
| 1046 | context.record_trunk_created(); |
| 1047 | context.record_branch_inserted(); |
| 1048 | |
| 1049 | let outcome = context.finish(); |
| 1050 | |
| 1051 | assert!(outcome.is_success()); |
| 1052 | assert!(!outcome.is_failure()); |
| 1053 | assert_eq!(outcome.stats().total_operations(), 2); |
| 1054 | assert!(!outcome.has_conflicts()); |
| 1055 | } |
| 1056 | |
| 1057 | #[test] |
| 1058 | fn test_context_finish_failure() { |
nothing calls this directly
no test coverage detected