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

Function test_branch_with_hash

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

Source from the content-addressed store, hash-verified

571
572 #[test]
573 fn test_branch_with_hash() {
574 let branch = Branch::with_hash(
575 BranchId::new(NodeId::new(1), 0),
576 TrunkId::new(NodeId::new(1), 0),
577 12345,
578 );
579 assert_eq!(branch.line_hash(), 12345);
580 }
581
582 #[test]
583 fn test_branch_set_state() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected