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

Function test_has_trunk

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

Source from the content-addressed store, hash-verified

690
691 #[test]
692 fn test_has_trunk() {
693 let mut txn = MockCrdtTxn::new();
694 let id = TrunkId::new(NodeId::new(1), 0);
695
696 assert!(!txn.has_trunk(id).unwrap());
697
698 let trunk = Trunk::new(id, Inode::new(1), "test.rs".to_string(), None);
699 txn.put_trunk(&trunk).unwrap();
700
701 assert!(txn.has_trunk(id).unwrap());
702 }
703
704 #[test]
705 fn test_del_trunk() {

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
put_trunkMethod · 0.45

Tested by

no test coverage detected