Skip to content

Conversation

@joseph-isaacs
Copy link
Contributor

Add a centralized assert_nth_scalar! macro in vortex-array for testing
scalar values at specific indices. This replaces duplicate local macro
definitions in encoding crates and simplifies verbose scalar assertions.

Changes:

  • Add assert_nth_scalar! macro to vortex-array/src/arrays/assertions.rs
  • Remove duplicate macro definitions from zstd, pco, and fsst test files
  • Update listview.rs builder tests to use the new macro
  • Update fastlanes bitpacking operations tests
  • Update vortex-layout struct reader tests

Signed-off-by: Claude [email protected]

@joseph-isaacs joseph-isaacs marked this pull request as draft January 14, 2026 18:02
@joseph-isaacs joseph-isaacs force-pushed the claude/simplify-vortex-tests-T9eT4 branch from 6d38c82 to 949a98a Compare January 14, 2026 18:09
Add a centralized `assert_nth_scalar!` macro in vortex-array for testing
scalar values at specific indices. This replaces duplicate local macro
definitions in encoding crates and simplifies verbose scalar assertions.

Changes:
- Add `assert_nth_scalar!` macro to vortex-array/src/arrays/assertions.rs
- Remove duplicate macro definitions from zstd, pco, and fsst test files
- Update listview.rs builder tests to use the new macro
- Update fastlanes bitpacking operations tests
- Update vortex-layout struct reader tests
- Simplify fuzz/mask tests to use assert_arrays_eq! instead of manual
  is_valid and scalar_at checks
- Remove redundant validity assertions after assert_arrays_eq!
- Simplify delta compress roundtrip tests to use assert_arrays_eq!

Signed-off-by: Claude <[email protected]>
@joseph-isaacs joseph-isaacs force-pushed the claude/simplify-vortex-tests-T9eT4 branch from 949a98a to e5fa6a0 Compare January 14, 2026 18:12
@codecov
Copy link

codecov bot commented Jan 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.38%. Comparing base (924830c) to head (7870513).

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants