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

Function test_builder_clone

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

Source from the content-addressed store, hash-verified

871
872 #[test]
873 fn test_builder_clone() {
874 let builder = ApplyOptions::builder()
875 .validate_ordering(true)
876 .max_operations(Some(50));
877 let cloned = builder.clone();
878 let options1 = builder.build();
879 let options2 = cloned.build();
880 assert_eq!(options1, options2);
881 }
882
883 #[test]
884 fn test_builder_default_trait() {

Callers

nothing calls this directly

Calls 4

max_operationsMethod · 0.80
validate_orderingMethod · 0.80
cloneMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected