()
| 785 | |
| 786 | #[test] |
| 787 | fn test_count_branches() { |
| 788 | let mut txn = MockCrdtTxn::new(); |
| 789 | let trunk_id = TrunkId::new(NodeId::new(1), 0); |
| 790 | |
| 791 | assert_eq!(txn.count_branches(trunk_id).unwrap(), 0); |
| 792 | |
| 793 | let b1 = BranchId::new(NodeId::new(1), 0); |
| 794 | txn.put_branch(&Branch::new(b1, trunk_id), None).unwrap(); |
| 795 | |
| 796 | assert_eq!(txn.count_branches(trunk_id).unwrap(), 1); |
| 797 | } |
| 798 | |
| 799 | // Leaf Tests |
| 800 |
nothing calls this directly
no test coverage detected