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

Function test_trunk_id_bytes_roundtrip

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

Source from the content-addressed store, hash-verified

319
320 #[test]
321 fn test_trunk_id_bytes_roundtrip() {
322 let id = TrunkId::new(NodeId::new(12345), 99);
323 let bytes = id.to_bytes();
324 let decoded = TrunkId::from_bytes(&bytes);
325 assert_eq!(id, decoded);
326 }
327
328 #[test]
329 fn test_trunk_id_ordering() {

Callers

nothing calls this directly

Calls 1

to_bytesMethod · 0.45

Tested by

no test coverage detected