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

Function test_branch_id_encoding_roundtrip

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

Source from the content-addressed store, hash-verified

817
818 #[test]
819 fn test_branch_id_encoding_roundtrip() {
820 let id = BranchId::new(NodeId::new(12345), 99);
821 let bytes = encode_branch_id(&id);
822 let decoded = decode_branch_id(&bytes);
823 assert_eq!(id, decoded);
824 }
825
826 #[test]
827 fn test_branch_id_encoding_root() {

Callers

nothing calls this directly

Calls 2

encode_branch_idFunction · 0.85
decode_branch_idFunction · 0.85

Tested by

no test coverage detected