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

Function test_run_array_all_nulls

arrow-array/src/array/run_array.rs:1024–1038  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1022
1023 #[test]
1024 fn test_run_array_all_nulls() {
1025 let test = vec![None, None, None];
1026 let array: RunArray<Int32Type> = test.into_iter().collect();
1027
1028 assert_eq!(array.len(), 3);
1029 assert_eq!(array.null_count(), 0);
1030 assert_eq!(array.logical_null_count(), 3);
1031
1032 let run_ends = array.run_ends();
1033 assert_eq!(3, run_ends.len());
1034 assert_eq!(&[3], run_ends.values());
1035
1036 let values_data = array.values();
1037 assert_eq!(1, values_data.null_count());
1038 }
1039
1040 #[test]
1041 fn test_run_array_try_new() {

Callers

nothing calls this directly

Calls 4

collectMethod · 0.80
run_endsMethod · 0.80
into_iterMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected