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

Function test_mark_trunk_deleted

atomic-core/src/crdt/apply/traits.rs:866–875  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

864
865 #[test]
866 fn test_mark_trunk_deleted() {
867 let mut txn = MockCrdtTxn::new();
868 let id = TrunkId::new(NodeId::new(1), 0);
869
870 txn.create_trunk(id, "test.rs", None).unwrap();
871 txn.mark_trunk_deleted(id).unwrap();
872
873 let trunk = txn.get_trunk(id).unwrap().unwrap();
874 assert!(trunk.state().is_deleted());
875 }
876
877 #[test]
878 fn test_mark_trunk_alive() {

Callers

nothing calls this directly

Calls 4

create_trunkMethod · 0.80
mark_trunk_deletedMethod · 0.80
unwrapMethod · 0.45
get_trunkMethod · 0.45

Tested by

no test coverage detected