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

Function test_leaf_id_encoding_roundtrip

atomic-core/src/crdt/tables.rs:850–855  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

848
849 #[test]
850 fn test_leaf_id_encoding_roundtrip() {
851 let id = LeafId::new(NodeId::new(12345), 99);
852 let bytes = encode_leaf_id(&id);
853 let decoded = decode_leaf_id(&bytes);
854 assert_eq!(id, decoded);
855 }
856
857 #[test]
858 fn test_leaf_id_encoding_root() {

Callers

nothing calls this directly

Calls 2

encode_leaf_idFunction · 0.85
decode_leaf_idFunction · 0.85

Tested by

no test coverage detected