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

Function test_get_short_byte_boolean

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

Source from the content-addressed store, hash-verified

1209
1210 #[test]
1211 fn test_get_short_byte_boolean() {
1212 let mut builder = BinaryRowBuilder::new(3);
1213 builder.write_short(0, -32768);
1214 builder.write_byte(1, -1);
1215 builder.write_boolean(2, true);
1216 let row = builder.build();
1217
1218 assert_eq!(row.get_short(0).unwrap(), -32768);
1219 assert_eq!(row.get_byte(1).unwrap(), -1);
1220 assert!(row.get_boolean(2).unwrap());
1221 }
1222
1223 #[test]
1224 fn test_get_float_double() {

Callers

nothing calls this directly

Calls 4

write_shortMethod · 0.80
write_byteMethod · 0.80
write_booleanMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected