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

Source from the content-addressed store, hash-verified

919
920 #[test]
921 fn test_view_seq_encoding_roundtrip() {
922 let view_id = 1u64;
923 let seq = 42u64;
924
925 let encoded = encode_view_seq(view_id, seq);
926 let (dec_view, dec_seq) = decode_view_seq(&encoded);
927
928 assert_eq!(dec_view, view_id);
929 assert_eq!(dec_seq, seq);
930 }
931
932 #[test]
933 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