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

Function test_branch_set_state

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

Source from the content-addressed store, hash-verified

581
582 #[test]
583 fn test_branch_set_state() {
584 let mut branch = make_branch();
585 assert!(branch.state().is_alive());
586
587 branch.set_state(BranchState::Deleted);
588 assert!(branch.state().is_deleted());
589 }
590
591 #[test]
592 fn test_branch_set_line_hash() {

Callers

nothing calls this directly

Calls 2

make_branchFunction · 0.85
set_stateMethod · 0.45

Tested by

no test coverage detected