MCPcopy Create free account
hub / github.com/apache/paimon-rust / test_meta_serialization

Function test_meta_serialization

crates/paimon/src/btree/tests.rs:288–295  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

286
287#[test]
288fn test_meta_serialization() {
289 let meta = BTreeIndexMeta::new(Some(int_key(0)), Some(int_key(99)), false);
290 let bytes = meta.serialize();
291 let decoded = BTreeIndexMeta::deserialize(&bytes).unwrap();
292 assert_eq!(decoded.first_key, Some(int_key(0)));
293 assert_eq!(decoded.last_key, Some(int_key(99)));
294 assert!(!decoded.has_nulls);
295}
296
297#[tokio::test]
298async fn test_zstd_compression() {

Callers

nothing calls this directly

Calls 3

int_keyFunction · 0.85
deserializeFunction · 0.85
serializeMethod · 0.45

Tested by

no test coverage detected