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

Function test_trunk_set_state

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

Source from the content-addressed store, hash-verified

533
534 #[test]
535 fn test_trunk_set_state() {
536 let mut trunk = make_trunk();
537 assert!(trunk.state().is_alive());
538
539 trunk.set_state(TrunkState::Deleted);
540 assert!(trunk.state().is_deleted());
541 }
542
543 #[test]
544 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