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

Function test_trunk_id_encoding_root

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

Source from the content-addressed store, hash-verified

794
795 #[test]
796 fn test_trunk_id_encoding_root() {
797 let id = TrunkId::ROOT;
798 let bytes = encode_trunk_id(&id);
799 let decoded = decode_trunk_id(&bytes);
800 assert_eq!(id, decoded);
801 assert!(decoded.is_root());
802 }
803
804 #[test]
805 fn test_trunk_id_encoding_ordering() {

Callers

nothing calls this directly

Calls 2

encode_trunk_idFunction · 0.85
decode_trunk_idFunction · 0.85

Tested by

no test coverage detected