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

Function test_position_encoding_roundtrip

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

Source from the content-addressed store, hash-verified

1216
1217 #[test]
1218 fn test_position_encoding_roundtrip() {
1219 let change_id = 999u64;
1220 let pos = 12345u64;
1221
1222 let encoded = encode_position(change_id, pos);
1223 let (dec_change, dec_pos) = decode_position(&encoded);
1224
1225 assert_eq!(dec_change, change_id);
1226 assert_eq!(dec_pos, pos);
1227 }
1228
1229 #[test]
1230 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