@@ -21,7 +21,6 @@ use vortex_buffer::ByteBufferMut;
2121use vortex_dtype:: DType ;
2222use vortex_dtype:: StructFields ;
2323use vortex_error:: VortexExpect ;
24- use vortex_error:: VortexUnwrap ;
2524use vortex_error:: vortex_panic;
2625use vortex_file:: OpenOptionsSessionExt ;
2726use vortex_file:: WriteOptionsSessionExt ;
@@ -52,14 +51,15 @@ fuzz_target!(|fuzz: FuzzFileAction| -> Corpus {
5251 . clone( )
5352 . unwrap_or_else( || lit( true ) )
5453 . evaluate( & array_data)
55- . vortex_unwrap ( ) ;
54+ . vortex_expect ( "filter expression evaluation should succeed in fuzz test" ) ;
5655 let mask = bool_mask. to_bool( ) . to_mask_fill_null_false( ) ;
57- let filtered = filter( & array_data, & mask) . vortex_unwrap( ) ;
56+ let filtered = filter( & array_data, & mask)
57+ . vortex_expect( "filter operation should succeed in fuzz test" ) ;
5858 projection_expr
5959 . clone( )
6060 . unwrap_or_else( root)
6161 . evaluate( & filtered)
62- . vortex_unwrap ( )
62+ . vortex_expect ( "projection expression evaluation should succeed in fuzz test" )
6363 } ;
6464
6565 let write_options = match compressor_strategy {
@@ -76,20 +76,20 @@ fuzz_target!(|fuzz: FuzzFileAction| -> Corpus {
7676 let _footer = write_options
7777 . blocking( & * RUNTIME )
7878 . write( & mut full_buff, array_data. to_array_iterator( ) )
79- . vortex_unwrap ( ) ;
79+ . vortex_expect ( "file write should succeed in fuzz test" ) ;
8080
8181 let mut output = SESSION
8282 . open_options( )
8383 . open_buffer( full_buff)
84- . vortex_unwrap ( )
84+ . vortex_expect ( "open_buffer should succeed in fuzz test" )
8585 . scan( )
86- . vortex_unwrap ( )
86+ . vortex_expect ( "scan should succeed in fuzz test" )
8787 . with_projection( projection_expr. unwrap_or_else( root) )
8888 . with_some_filter( filter_expr)
8989 . into_array_iter( & * RUNTIME )
90- . vortex_unwrap ( )
90+ . vortex_expect ( "into_array_iter should succeed in fuzz test" )
9191 . try_collect:: <_, Vec <_>, _>( )
92- . vortex_unwrap ( ) ;
92+ . vortex_expect ( "collect should succeed in fuzz test" ) ;
9393
9494 let output_array = match output. len( ) {
9595 0 => Canonical :: empty( expected_array. dtype( ) ) . into_array( ) ,
@@ -113,7 +113,7 @@ fuzz_target!(|fuzz: FuzzFileAction| -> Corpus {
113113 ) ;
114114
115115 let bool_result = compare( & expected_array, & output_array, Operator :: Eq )
116- . vortex_unwrap ( )
116+ . vortex_expect ( "compare operation should succeed in fuzz test" )
117117 . to_bool( ) ;
118118 let true_count = bool_result. bit_buffer( ) . true_count( ) ;
119119 if true_count != expected_array. len( ) && ( bool_result. all_valid( ) || expected_array. all_valid( ) )
0 commit comments