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

Function test_branch_new

atomic-core/src/crdt/branch.rs:564–570  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

make_branchFunction · 0.85

Tested by

no test coverage detected