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

Function test_position_encoding_roundtrip

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

Source from the content-addressed store, hash-verified

907
908 #[test]
909 fn test_position_encoding_roundtrip() {
910 let change_id = 999u64;
911 let pos = 12345u64;
912
913 let encoded = encode_position(change_id, pos);
914 let (dec_change, dec_pos) = decode_position(&encoded);
915
916 assert_eq!(dec_change, change_id);
917 assert_eq!(dec_pos, pos);
918 }
919
920 #[test]
921 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