22// SPDX-FileCopyrightText: Copyright the Vortex contributors
33
44//! Integer narrowing precedes codec selection and preserves the input dtype.
5+ //!
6+ //! These cases use a compressor without schemes to isolate width selection. Constants and values
7+ //! that need the full logical width exercise paths that do not require a Narrow wrapper.
58
69use rstest:: rstest;
710use vortex_array:: IntoArray ;
@@ -21,7 +24,7 @@ use crate::CascadingCompressor;
2124#[ rstest]
2225#[ case:: disabled( false ) ]
2326#[ case:: enabled( true ) ]
24- fn integer_width ( #[ case] enabled : bool ) -> VortexResult < ( ) > {
27+ fn test_integer_width ( #[ case] enabled : bool ) -> VortexResult < ( ) > {
2528 let mut ctx = array_session ( ) . create_execution_ctx ( ) ;
2629 let input = buffer ! [ -128i64 , 0 , 127 ] . into_array ( ) ;
2730 let compressor = CascadingCompressor :: new ( vec ! [ ] ) . with_narrow_integers ( enabled) ;
@@ -44,7 +47,7 @@ fn integer_width(#[case] enabled: bool) -> VortexResult<()> {
4447#[ rstest]
4548#[ case:: constant( PrimitiveArray :: from_iter( [ 127i64 ; 1024 ] ) ) ]
4649#[ case:: all_null( PrimitiveArray :: from_option_iter( [ None :: <i64 >; 3 ] ) ) ]
47- fn constant_dtype ( #[ case] input : PrimitiveArray ) -> VortexResult < ( ) > {
50+ fn test_constant_dtype ( #[ case] input : PrimitiveArray ) -> VortexResult < ( ) > {
4851 let mut ctx = array_session ( ) . create_execution_ctx ( ) ;
4952 let input = input. into_array ( ) ;
5053 let compressor = CascadingCompressor :: new ( vec ! [ ] ) . with_narrow_integers ( true ) ;
@@ -58,7 +61,7 @@ fn constant_dtype(#[case] input: PrimitiveArray) -> VortexResult<()> {
5861}
5962
6063#[ test]
61- fn full_width_values ( ) -> VortexResult < ( ) > {
64+ fn test_full_width_values ( ) -> VortexResult < ( ) > {
6265 let mut ctx = array_session ( ) . create_execution_ctx ( ) ;
6366 let input = buffer ! [ i64 :: MIN , i64 :: MAX ] . into_array ( ) ;
6467 let result = CascadingCompressor :: new ( vec ! [ ] )
0 commit comments