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

Function test_get_int

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

Source from the content-addressed store, hash-verified

1188
1189 #[test]
1190 fn test_get_int() {
1191 let mut builder = BinaryRowBuilder::new(2);
1192 builder.write_int(0, 42);
1193 builder.write_int(1, -100);
1194 let row = builder.build();
1195
1196 assert!(!row.is_empty());
1197 assert_eq!(row.arity(), 2);
1198 assert_eq!(row.get_int(0).unwrap(), 42);
1199 assert_eq!(row.get_int(1).unwrap(), -100);
1200 }
1201
1202 #[test]
1203 fn test_get_long() {

Callers

nothing calls this directly

Calls 2

write_intMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected