MCPcopy Create free account
hub / github.com/apache/arrow-rs / test_append_binary

Function test_append_binary

arrow-array/src/array/byte_view_array.rs:1258–1270  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1256
1257 #[test]
1258 fn test_append_binary() {
1259 // test builder append
1260 let array = {
1261 let mut builder = BinaryViewBuilder::new();
1262 builder.append_value(b"hello");
1263 builder.append_null();
1264 builder.append_option(Some(b"large payload over 12 bytes"));
1265 builder.finish()
1266 };
1267 assert_eq!(array.value(0), b"hello");
1268 assert!(array.is_null(1));
1269 assert_eq!(array.value(2), b"large payload over 12 bytes");
1270 }
1271
1272 #[test]
1273 fn test_in_progress_recreation() {

Callers

nothing calls this directly

Calls 4

append_valueMethod · 0.45
append_nullMethod · 0.45
append_optionMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected