Phoenix500526 opened a new pull request, #12354:
URL: https://github.com/apache/arrow-rs/pull/12354
# Which issue does this PR close?
Part of #12328.
# Rationale for this change
Nested loops and repeated setup make individual test scenarios harder to
identify and run separately. This batch uses `rstest` for selected
`arrow-array` tests while keeping short loops inside each case where they
remain easier to read.
# What changes are included in this PR?
- Add `rstest` as a development dependency with default features disabled.
- Parameterize Union construction, validity and slicing tests, and separate
successful construction from the invalid-input cases.
- Parameterize Decimal types and scales, with separate tests for the two
fixed error-message scenarios.
- Parameterize FFI byte-array types together with their offset buffers, and
fixed-offset timezones while retaining the inner offset/time loops.
# Are these changes tested?
Existing inputs and assertions are preserved. Union slicing additionally
covers suffix slices and empty slices at the start in both storage modes.
The Decimal tests retain all 68 precision checks across four Decimal types;
the FFI and timezone tests retain their 16 and 12 input combinations.
Local `arrow-array` testing with FFI enabled passed 878 unit tests and 211
documentation tests, with three existing tests ignored. Clippy with all
crate features and targets, formatting and spelling checks also passed.
# Are there any significant user-facing changes?
No. This changes tests and development dependencies only.
# AI usage disclosure
AI assistance was used to identify candidates, draft parts of the test
refactors, compare coverage with the original tests, and run validation.
--
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]