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

Function length_null_string

arrow-string/src/length.rs:354–366  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

352
353 #[test]
354 fn length_null_string() {
355 length_null_cases_string()
356 .into_iter()
357 .for_each(|(input, len, expected)| {
358 let array = StringArray::from(input);
359 let result = length(&array).unwrap();
360 assert_eq!(len, result.len());
361 let result = result.as_any().downcast_ref::<Int32Array>().unwrap();
362
363 let expected: Int32Array = expected.into();
364 assert_eq!(&expected, result);
365 })
366 }
367
368 #[test]
369 fn length_null_large_string() {

Callers

nothing calls this directly

Calls 4

length_null_cases_stringFunction · 0.85
lengthFunction · 0.85
into_iterMethod · 0.45
as_anyMethod · 0.45

Tested by

no test coverage detected