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

Function test_leaf_state_encoding_roundtrip

atomic-core/src/crdt/tables.rs:924–933  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

922
923 #[test]
924 fn test_leaf_state_encoding_roundtrip() {
925 assert_eq!(
926 decode_leaf_state(encode_leaf_state(LeafState::Alive)),
927 LeafState::Alive
928 );
929 assert_eq!(
930 decode_leaf_state(encode_leaf_state(LeafState::Deleted)),
931 LeafState::Deleted
932 );
933 }
934
935 #[test]
936 fn test_leaf_state_encoding_unknown_defaults_to_alive() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected