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

Function test_from_serialized_bytes

crates/paimon/src/spec/binary_row.rs:1173–1182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1171
1172 #[test]
1173 fn test_from_serialized_bytes() {
1174 let mut builder = BinaryRowBuilder::new(1);
1175 builder.write_int(0, 42);
1176 let serialized = builder.build_serialized();
1177
1178 let row = BinaryRow::from_serialized_bytes(&serialized).unwrap();
1179 assert_eq!(row.arity(), 1);
1180 assert!(!row.is_null_at(0));
1181 assert_eq!(row.get_int(0).unwrap(), 42);
1182 }
1183
1184 #[test]
1185 fn test_from_serialized_bytes_too_short() {

Callers

nothing calls this directly

Calls 2

build_serializedMethod · 0.80
write_intMethod · 0.45

Tested by

no test coverage detected