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

Function test_append_string

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

Source from the content-addressed store, hash-verified

1241
1242 #[test]
1243 fn test_append_string() {
1244 // test builder append
1245 let array = {
1246 let mut builder = StringViewBuilder::new();
1247 builder.append_value("hello");
1248 builder.append_null();
1249 builder.append_option(Some("large payload over 12 bytes"));
1250 builder.finish()
1251 };
1252 assert_eq!(array.value(0), "hello");
1253 assert!(array.is_null(1));
1254 assert_eq!(array.value(2), "large payload over 12 bytes");
1255 }
1256
1257 #[test]
1258 fn test_append_binary() {

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