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

Function length_test_string_view

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

Source from the content-addressed store, hash-verified

274
275 #[test]
276 fn length_test_string_view() {
277 length_cases_string()
278 .into_iter()
279 .for_each(|(input, len, expected)| {
280 let array = StringViewArray::from(input);
281 let result = length(&array).unwrap();
282 assert_eq!(len, result.len());
283 let result = result.as_any().downcast_ref::<Int32Array>().unwrap();
284 expected.iter().enumerate().for_each(|(i, value)| {
285 assert_eq!(*value, result.value(i));
286 });
287 })
288 }
289
290 #[test]
291 fn length_test_binary() {

Callers

nothing calls this directly

Calls 5

length_cases_stringFunction · 0.85
lengthFunction · 0.85
into_iterMethod · 0.45
as_anyMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected