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

Function length_test_string

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

Source from the content-addressed store, hash-verified

244
245 #[test]
246 fn length_test_string() {
247 length_cases_string()
248 .into_iter()
249 .for_each(|(input, len, expected)| {
250 let array = StringArray::from(input);
251 let result = length(&array).unwrap();
252 assert_eq!(len, result.len());
253 let result = result.as_any().downcast_ref::<Int32Array>().unwrap();
254 expected.iter().enumerate().for_each(|(i, value)| {
255 assert_eq!(*value, result.value(i));
256 });
257 })
258 }
259
260 #[test]
261 fn length_test_large_string() {

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