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

Function test_position_encoding_roundtrip

atomic-core/src/pristine/tables.rs:918–927  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

916
917 #[test]
918 fn test_position_encoding_roundtrip() {
919 let change_id = 999u64;
920 let pos = 12345u64;
921
922 let encoded = encode_position(change_id, pos);
923 let (dec_change, dec_pos) = decode_position(&encoded);
924
925 assert_eq!(dec_change, change_id);
926 assert_eq!(dec_pos, pos);
927 }
928
929 #[test]
930 fn test_view_seq_encoding_roundtrip() {

Callers

nothing calls this directly

Calls 2

encode_positionFunction · 0.85
decode_positionFunction · 0.85

Tested by

no test coverage detected