Phoenix500526 opened a new pull request, #12358: URL: https://github.com/apache/arrow-rs/pull/12358
# Which issue does this PR close? Part of #12328. # Rationale for this change Several arrow-json tests repeat setup and assertions or group independent scenarios in a single test. Named rstest cases make failures easier to identify and keep shared test logic in one place. # What changes are included in this PR? - Add rstest as a development dependency with default features disabled. - Parameterize reader tests for string and timestamp types, Struct decoding, and run-end encoded nullability. - Separate decoder state preservation checks from invalid-input cases, and group tape errors by decode, truncation, and UTF-8 failure stages. - Parameterize Decimal encoding, fallback encoder null handling, empty writer output, and Struct JSON round trips. # Are these changes tested? The refactored tests preserve the original inputs, parameter combinations, and expected results, including full error messages, Decimal precision and scale differences, and default implicit-null configuration. Truncated-record cases also check that the decoder retains a partial row and its buffered row count. All 187 arrow-json unit tests and 19 documentation tests pass with all features enabled. Clippy, formatting, and spelling checks also pass. # Are there any significant user-facing changes? No. This changes tests and development dependencies only. # AI usage disclosure Codex assisted with identifying duplicated tests, implementing the refactoring, reviewing coverage, and running 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]
