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

Function test_view_seq_encoding_roundtrip

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

Source from the content-addressed store, hash-verified

1228
1229 #[test]
1230 fn test_view_seq_encoding_roundtrip() {
1231 let view_id = 1u64;
1232 let seq = 42u64;
1233
1234 let encoded = encode_view_seq(view_id, seq);
1235 let (dec_view, dec_seq) = decode_view_seq(&encoded);
1236
1237 assert_eq!(dec_view, view_id);
1238 assert_eq!(dec_seq, seq);
1239 }
1240
1241 #[test]
1242 fn test_view_merkle_encoding_roundtrip() {

Callers

nothing calls this directly

Calls 2

encode_view_seqFunction · 0.85
decode_view_seqFunction · 0.85

Tested by

no test coverage detected