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

Function test_trunk_id_encoding_roundtrip

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

Source from the content-addressed store, hash-verified

786
787 #[test]
788 fn test_trunk_id_encoding_roundtrip() {
789 let id = TrunkId::new(NodeId::new(12345), 99);
790 let bytes = encode_trunk_id(&id);
791 let decoded = decode_trunk_id(&bytes);
792 assert_eq!(id, decoded);
793 }
794
795 #[test]
796 fn test_trunk_id_encoding_root() {

Callers

nothing calls this directly

Calls 2

encode_trunk_idFunction · 0.85
decode_trunk_idFunction · 0.85

Tested by

no test coverage detected