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

Function test_deletion_flag_transition

atomic-core/src/apply/edge.rs:798–805  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

796
797 #[test]
798 fn test_deletion_flag_transition() {
799 let previous = EdgeFlags::BLOCK;
800 let new_flag = EdgeFlags::BLOCK | EdgeFlags::DELETED;
801
802 assert!(!previous.contains(EdgeFlags::DELETED));
803 assert!(new_flag.contains(EdgeFlags::DELETED));
804 assert!(new_flag.contains(EdgeFlags::BLOCK));
805 }
806
807 #[test]
808 fn test_undeletion_flag_transition() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected