()
| 562 | |
| 563 | #[test] |
| 564 | fn test_branch_new() { |
| 565 | let branch = make_branch(); |
| 566 | assert_eq!(branch.id(), BranchId::new(NodeId::new(1), 0)); |
| 567 | assert_eq!(branch.trunk(), TrunkId::new(NodeId::new(1), 0)); |
| 568 | assert!(branch.state().is_alive()); |
| 569 | assert_eq!(branch.line_hash(), Branch::FNV_OFFSET_BASIS); |
| 570 | } |
| 571 | |
| 572 | #[test] |
| 573 | fn test_branch_with_hash() { |
nothing calls this directly
no test coverage detected