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

Function test_append_value_n

arrow-array/src/builder/generic_bytes_builder.rs:959–973  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

957
958 #[test]
959 fn test_append_value_n() {
960 let mut builder = GenericStringBuilder::<i32>::new();
961 builder.append_value("hello");
962 builder.append_value_n("world", 3);
963 builder.append_null();
964 let array = builder.finish();
965
966 assert_eq!(5, array.len());
967 assert_eq!(1, array.null_count());
968 assert_eq!("hello", array.value(0));
969 assert_eq!("world", array.value(1));
970 assert_eq!("world", array.value(2));
971 assert_eq!("world", array.value(3));
972 assert!(array.is_null(4));
973 }
974}

Callers

nothing calls this directly

Calls 4

append_valueMethod · 0.45
append_value_nMethod · 0.45
append_nullMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected