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

Function test_del_trunk

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

Source from the content-addressed store, hash-verified

703
704 #[test]
705 fn test_del_trunk() {
706 let mut txn = MockCrdtTxn::new();
707 let id = TrunkId::new(NodeId::new(1), 0);
708 let trunk = Trunk::new(id, Inode::new(1), "test.rs".to_string(), None);
709
710 txn.put_trunk(&trunk).unwrap();
711 assert!(txn.del_trunk(id).unwrap());
712 assert!(!txn.has_trunk(id).unwrap());
713 }
714
715 #[test]
716 fn test_get_trunk_by_path() {

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
put_trunkMethod · 0.45

Tested by

no test coverage detected