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

Function test_branch_state_encoding_roundtrip

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

Source from the content-addressed store, hash-verified

905
906 #[test]
907 fn test_branch_state_encoding_roundtrip() {
908 assert_eq!(
909 decode_branch_state(encode_branch_state(BranchState::Alive)),
910 BranchState::Alive
911 );
912 assert_eq!(
913 decode_branch_state(encode_branch_state(BranchState::Deleted)),
914 BranchState::Deleted
915 );
916 }
917
918 #[test]
919 fn test_branch_state_encoding_unknown_defaults_to_alive() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected