Phoenix500526 opened a new pull request, #12400:
URL: https://github.com/apache/arrow-rs/pull/12400

   # Which issue does this PR close?
   
   - Closes #12396
   - Part of #12328
   
   # Rationale for this change
   
   Selected arrow-string tests repeat setup and assertions or bury independent 
combinations in nested loops. Named cases and parameterized tests make these 
scenarios easier to read and identify when they fail.
   
   # What changes are included in this PR?
   
   - Add rstest as a development dependency.
   - Parameterize extreme substring start/length combinations, preserving 
separate checks with explicit expected values.
   - Parameterize LIKE null propagation and escape tests across the existing 
string types, functions, patterns, and scalar/array combinations.
   - Consolidate repeated string length, bit-length, and ListView length tests 
while preserving their distinct inputs and result types.
   - Consolidate concatenation scenarios for ordinary arrays, View arrays, 
slices, length mismatches, and fixed-size binary arrays.
   
   Original inputs, expected results, and Miri exclusions are retained. The 
existing `bit_length_null_utf8view` naming/coverage mismatch is left for 
separate work, and the fixed-size binary width-overflow test is unchanged.
   
   # Are these changes tested?
   
   These changes refactor existing tests while retaining their behavioral 
coverage, including null propagation, slice offsets, long View values, and 
type-specific expectations. Local all-feature validation passed with 515 unit 
tests and 10 documentation tests. Clippy, formatting, and spelling checks also 
passed. Miri itself was not run.
   
   # Are there any significant user-facing changes?
   
   No. Production code and public APIs are unchanged.
   
   # AI usage disclosure
   
   I worked through the proposed test groups with Codex individually, selected 
which groups were worth refactoring, reviewed the proposed changes, and 
discussed the parameterization and coverage requirements before proceeding. For 
example, I questioned the distinction between null values and null patterns in 
LIKE tests and discussed whether to combine them. I also explicitly kept the 
`bit_length_null_utf8view` issue separate and required the width-overflow test 
to remain unchanged.
   
   Codex helped inspect the tests, propose refactorings, implement the agreed 
changes, compare coverage, and run local validation. The scope and design were 
developed interactively with my review and direction throughout, rather than 
delegated as an unattended crate-wide rewrite.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to