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

Function test_leaf_delete_and_restore

atomic-core/src/crdt/leaf.rs:599–608  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

597
598 #[test]
599 fn test_leaf_delete_and_restore() {
600 let mut leaf = make_leaf();
601 assert!(leaf.state().is_alive());
602
603 leaf.delete();
604 assert!(leaf.state().is_deleted());
605
606 leaf.restore();
607 assert!(leaf.state().is_alive());
608 }
609
610 #[test]
611 fn test_leaf_display() {

Callers

nothing calls this directly

Calls 3

make_leafFunction · 0.85
deleteMethod · 0.45
restoreMethod · 0.45

Tested by

no test coverage detected