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

Function test_mark_trunk_alive

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

Source from the content-addressed store, hash-verified

876
877 #[test]
878 fn test_mark_trunk_alive() {
879 let mut txn = MockCrdtTxn::new();
880 let id = TrunkId::new(NodeId::new(1), 0);
881
882 txn.create_trunk(id, "test.rs", None).unwrap();
883 txn.mark_trunk_deleted(id).unwrap();
884 txn.mark_trunk_alive(id).unwrap();
885
886 let trunk = txn.get_trunk(id).unwrap().unwrap();
887 assert!(trunk.state().is_alive());
888 }
889
890 #[test]
891 fn test_create_branch() {

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected