• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

vortex-data / vortex / 16809286174
88%

Build:
DEFAULT BRANCH: develop
Ran 07 Aug 2025 03:51PM UTC
Jobs 2
Files 634
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Aug 2025 03:47PM UTC coverage: 84.726% (+0.7%) from 83.993%
16809286174

push

github

web-flow
chore: improve vortex-scalar tests, reorganize module structure (#4145)

## Overview

This comprehensive refactoring improved test coverage, fixed critical
bugs, enhanced code organization, and improved consistency across the
vortex-scalar crate.

## Major Bug Fixes

  1. Fixed Decimal Casting Panic (lib.rs:231)
    - Replaced todo!() with proper decimal casting implementation
- Added support for decimal-to-primitive and decimal-to-decimal
conversions
    - Handles scale conversions correctly
2. Fixed ByteBuffer Null Conversion Panic (scalar_value/binary.rs:18-19)
- Changed from .vortex_expect() (panics) to .ok_or_else() (returns
error)
    - Prevents runtime panics when converting null scalars to ByteBuffer
  3. Fixed i256 BigInt Implementation (bigint/mod.rs)
    - Added comprehensive tests and fixed edge cases
    - Improved arithmetic operations and comparisons

## Module Reorganization

  1. Arrow Module (arrow.rs → arrow/mod.rs + arrow/tests.rs)
    - Split into directory module with separate test file
    - Added 262 lines of comprehensive conversion tests
2. Decimal Module (decimal.rs → decimal/mod.rs + decimal/tests.rs +
decimal/value.rs)
    - Reorganized into directory module with 3 files
    - Added 495 lines of tests covering edge cases
    - Separated DecimalValue into its own module (303 lines)
  3. Test Organization (new tests/ directory)
    - Created tests/core.rs (563 lines) - core functionality tests
    - Created tests/round_trip.rs (329 lines) - serialization tests
- Created tests/consistency.rs (131 lines) - documenting inconsistencies
    - Created tests/mod.rs - module organization

## Consistency Improvements

  1. Null Comparison Behavior
    - Standardized across BoolScalar, BinaryScalar, Utf8Scalar
    - All now use dtype.eq_ignore_nullability() for comparisons
  2. Error Messages
    - Consistent error message format using vortex_err!
    - Better error context throughout
  3. Trait Implementations
    - Added missing Fro... (continued)

1851 of 1939 new or added lines in 23 files covered. (95.46%)

3 existing lines in 3 files now uncovered.

50168 of 59212 relevant lines covered (84.73%)

552637.38 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
90.63
0.0% vortex-array/src/arrays/constant/canonical.rs
1
99.5
vortex-scalar/src/tests/round_trip.rs
2
26.71
0.0% vortex-datafusion/src/convert/scalars.rs
2
99.32
vortex-scalar/src/decimal/tests.rs
2
65.26
-0.31% vortex-scalar/src/struct_.rs
3
98.82
28.03% vortex-scalar/src/list.rs
3
73.58
4.1% vortex-scalar/src/utf8.rs
4
66.67
3.64% vortex-scalar/src/binary.rs
5
60.98
0.0% vortex-duckdb/src/convert/scalar.rs
7
97.76
vortex-scalar/src/tests/core.rs
17
45.18
vortex-scalar/src/decimal/mod.rs
41
72.52
-10.63% vortex-scalar/src/primitive.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
66.55
-0.36% vortex-scalar/src/pvalue.rs
1
72.52
-10.63% vortex-scalar/src/primitive.rs
1
60.98
0.0% vortex-duckdb/src/convert/scalar.rs
Jobs
ID Job ID Ran Files Coverage
1 run-tpc-h - 16809286174.1 07 Aug 2025 03:51PM UTC 579
48.23
GitHub Action Run
2 run-tests - 16809286174.2 07 Aug 2025 03:53PM UTC 634
82.46
GitHub Action Run
Source Files on build 16809286174
  • Tree
  • List 634
  • Changed 23
  • Source Changed 15
  • Coverage Changed 19
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16809286174
  • dd8fc024 on github
  • Prev Build on develop (#16807896247)
  • Next Build on develop (#16809793495)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc