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

Function test_leaf_set_state

atomic-core/src/crdt/leaf.rs:571–577  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

569
570 #[test]
571 fn test_leaf_set_state() {
572 let mut leaf = make_leaf();
573 assert!(leaf.state().is_alive());
574
575 leaf.set_state(LeafState::Deleted);
576 assert!(leaf.state().is_deleted());
577 }
578
579 #[test]
580 fn test_leaf_set_kind() {

Callers

nothing calls this directly

Calls 2

make_leafFunction · 0.85
set_stateMethod · 0.45

Tested by

no test coverage detected