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

Function test_sequence_clear

atomic-core/src/crdt/apply/order.rs:728–735  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

726
727 #[test]
728 fn test_sequence_clear() {
729 let mut seq: OrderingSequence<i32> = OrderingSequence::new();
730 seq.insert(1, None);
731 seq.insert(2, Some(1));
732
733 seq.clear();
734 assert!(seq.is_empty());
735 }
736
737 #[test]
738 fn test_sequence_default() {

Callers

nothing calls this directly

Calls 2

clearMethod · 0.65
insertMethod · 0.45

Tested by

no test coverage detected