MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_builder_chaining

Function test_builder_chaining

atomic-core/src/crdt/apply/options.rs:706–726  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 9

max_operationsMethod · 0.80
allow_duplicate_idsMethod · 0.80
fail_on_conflictMethod · 0.80
track_conflictsMethod · 0.80
validate_referencesMethod · 0.80
validate_orderingMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected