()
| 929 | |
| 930 | #[test] |
| 931 | fn test_context_new() { |
| 932 | let options = ApplyOptions::default(); |
| 933 | let context = ApplyContext::new(options.clone()); |
| 934 | |
| 935 | assert_eq!(context.options(), &options); |
| 936 | assert_eq!(context.stats().total_operations(), 0); |
| 937 | assert!(context.conflicts().is_empty()); |
| 938 | assert!(!context.has_failed()); |
| 939 | } |
| 940 | |
| 941 | #[test] |
| 942 | fn test_context_with_defaults() { |