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:961–970  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

959
960 #[test]
961 fn test_view_seq_encoding_roundtrip() {
962 let view_id = 1u64;
963 let seq = 42u64;
964
965 let encoded = encode_view_seq(view_id, seq);
966 let (dec_view, dec_seq) = decode_view_seq(&encoded);
967
968 assert_eq!(dec_view, view_id);
969 assert_eq!(dec_seq, seq);
970 }
971
972 #[test]
973 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