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

Function assertions

arrow-array/src/array/run_array.rs:929–936  ·  view source on GitHub ↗
(array: &RunArray<Int16Type>)

Source from the content-addressed store, hash-verified

927 let array = RunArray::try_new(runs, &values).unwrap();
928
929 fn assertions(array: &RunArray<Int16Type>) {
930 assert!(array.is_empty());
931 assert_eq!(array.get_start_physical_index(), 0);
932 assert_eq!(array.get_end_physical_index(), 0);
933 assert!(array.get_physical_indices::<i16>(&[]).unwrap().is_empty());
934 assert!(array.run_ends().is_empty());
935 assert_eq!(array.run_ends().sliced_values().count(), 0);
936 }
937
938 assertions(&array);
939 assertions(&array.slice(0, 0));

Callers 1

test_run_array_emptyFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_run_array_emptyFunction · 0.68