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

Function test_trunk_set_state

atomic-core/src/crdt/trunk.rs:509–515  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

507
508 #[test]
509 fn test_trunk_set_state() {
510 let mut trunk = make_trunk();
511 assert!(trunk.state().is_alive());
512
513 trunk.set_state(TrunkState::Deleted);
514 assert!(trunk.state().is_deleted());
515 }
516
517 #[test]
518 fn test_trunk_set_path() {

Callers

nothing calls this directly

Calls 2

make_trunkFunction · 0.85
set_stateMethod · 0.45

Tested by

no test coverage detected