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

Function test_branch_id_bytes_roundtrip

atomic-core/src/crdt/ids.rs:371–376  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

369
370 #[test]
371 fn test_branch_id_bytes_roundtrip() {
372 let id = BranchId::new(NodeId::new(12345), 99);
373 let bytes = id.to_bytes();
374 let decoded = BranchId::from_bytes(&bytes);
375 assert_eq!(id, decoded);
376 }
377
378 #[test]
379 fn test_branch_id_ordering() {

Callers

nothing calls this directly

Calls 1

to_bytesMethod · 0.45

Tested by

no test coverage detected