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

Function test_leaf_id_encoding_root

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

Source from the content-addressed store, hash-verified

856
857 #[test]
858 fn test_leaf_id_encoding_root() {
859 let id = LeafId::ROOT;
860 let bytes = encode_leaf_id(&id);
861 let decoded = decode_leaf_id(&bytes);
862 assert_eq!(id, decoded);
863 assert!(decoded.is_root());
864 }
865
866 #[test]
867 fn test_leaf_id_encoding_ordering() {

Callers

nothing calls this directly

Calls 2

encode_leaf_idFunction · 0.85
decode_leaf_idFunction · 0.85

Tested by

no test coverage detected