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

Function test_branch_id_encoding_root

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

Source from the content-addressed store, hash-verified

825
826 #[test]
827 fn test_branch_id_encoding_root() {
828 let id = BranchId::ROOT;
829 let bytes = encode_branch_id(&id);
830 let decoded = decode_branch_id(&bytes);
831 assert_eq!(id, decoded);
832 assert!(decoded.is_root());
833 }
834
835 #[test]
836 fn test_branch_id_encoding_ordering() {

Callers

nothing calls this directly

Calls 2

encode_branch_idFunction · 0.85
decode_branch_idFunction · 0.85

Tested by

no test coverage detected