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

Function test_sequence_remove_not_found

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

Source from the content-addressed store, hash-verified

716
717 #[test]
718 fn test_sequence_remove_not_found() {
719 let mut seq: OrderingSequence<i32> = OrderingSequence::new();
720 seq.insert(1, None);
721
722 let removed = seq.remove(&99);
723 assert_eq!(removed, None);
724 assert_eq!(seq.len(), 1);
725 }
726
727 #[test]
728 fn test_sequence_clear() {

Callers

nothing calls this directly

Calls 2

removeMethod · 0.65
insertMethod · 0.45

Tested by

no test coverage detected