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

Function test_position_encoding_roundtrip

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

Source from the content-addressed store, hash-verified

935
936 #[test]
937 fn test_position_encoding_roundtrip() {
938 let change_id = 999u64;
939 let pos = 12345u64;
940
941 let encoded = encode_position(change_id, pos);
942 let (dec_change, dec_pos) = decode_position(&encoded);
943
944 assert_eq!(dec_change, change_id);
945 assert_eq!(dec_pos, pos);
946 }
947
948 #[test]
949 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