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

Function test_into_builder

arrow-array/src/array/string_array.rs:531–542  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

529
530 #[test]
531 fn test_into_builder() {
532 let array: StringArray = vec!["hello", "arrow"].into();
533
534 // Append values
535 let mut builder = array.into_builder().unwrap();
536
537 builder.append_value("rust");
538
539 let expected: StringArray = vec!["hello", "arrow", "rust"].into();
540 let array = builder.finish();
541 assert_eq!(expected, array);
542 }
543
544 #[test]
545 fn test_into_builder_err() {

Callers

nothing calls this directly

Calls 3

into_builderMethod · 0.45
append_valueMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected