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

Source from the content-addressed store, hash-verified

928
929 #[test]
930 fn test_view_seq_encoding_roundtrip() {
931 let view_id = 1u64;
932 let seq = 42u64;
933
934 let encoded = encode_view_seq(view_id, seq);
935 let (dec_view, dec_seq) = decode_view_seq(&encoded);
936
937 assert_eq!(dec_view, view_id);
938 assert_eq!(dec_seq, seq);
939 }
940
941 #[test]
942 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