()
| 704 | |
| 705 | #[test] |
| 706 | fn test_builder_chaining() { |
| 707 | let options = ApplyOptions::builder() |
| 708 | .validate_ordering(true) |
| 709 | .validate_references(true) |
| 710 | .track_conflicts(true) |
| 711 | .fail_on_conflict(true) |
| 712 | .allow_duplicate_ids(false) |
| 713 | .update_reverse_indexes(true) |
| 714 | .max_operations(Some(500)) |
| 715 | .validate_content_ranges(true) |
| 716 | .build(); |
| 717 | |
| 718 | assert!(options.validate_ordering()); |
| 719 | assert!(options.validate_references()); |
| 720 | assert!(options.track_conflicts()); |
| 721 | assert!(options.fail_on_conflict()); |
| 722 | assert!(!options.allow_duplicate_ids()); |
| 723 | assert!(options.update_reverse_indexes()); |
| 724 | assert_eq!(options.max_operations(), Some(500)); |
| 725 | assert!(options.validate_content_ranges()); |
| 726 | } |
| 727 | |
| 728 | // Utility Method Tests |
| 729 |
nothing calls this directly
no test coverage detected