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

Function test_trunk_state_encoding_roundtrip

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

Source from the content-addressed store, hash-verified

883
884 #[test]
885 fn test_trunk_state_encoding_roundtrip() {
886 assert_eq!(
887 decode_trunk_state(encode_trunk_state(TrunkState::Alive)),
888 TrunkState::Alive
889 );
890 assert_eq!(
891 decode_trunk_state(encode_trunk_state(TrunkState::Deleted)),
892 TrunkState::Deleted
893 );
894 assert_eq!(
895 decode_trunk_state(encode_trunk_state(TrunkState::Zombie)),
896 TrunkState::Zombie
897 );
898 }
899
900 #[test]
901 fn test_trunk_state_encoding_unknown_defaults_to_alive() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected