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

vortex-data / vortex / 16839690806
88%

Build:
DEFAULT BRANCH: develop
Ran 08 Aug 2025 08:24PM UTC
Jobs 2
Files 639
Run time 2min
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

08 Aug 2025 08:17PM UTC coverage: 85.215% (+0.2%) from 84.972%
16839690806

push

github

web-flow
chore: improve vortex-mask testing (#4178)

# vortex-mask Test Coverage Improvements

## Summary

We've made significant improvements to the test coverage and code
quality of the `vortex-mask` crate. Here's a comprehensive summary:

### 📊 Test Coverage Improvements

- **Increased from 15 to 105 tests** - a 7x increase in test coverage
- **Added 1,183 lines** (mostly tests), removed 109 lines (moved tests)
- All tests pass with no clippy warnings

### 🔧 Key Changes Made

#### 1. Test Organization

- **Moved tests from `lib.rs` to dedicated `tests.rs` file** - Better
separation of concerns
- Added `rstest` as a dev dependency for parameterized testing
- Added file-scoped clippy allows for test code
(`#![allow(clippy::panic)]`,
`#![allow(clippy::many_single_char_names)]`)

#### 2. Comprehensive Test Coverage Added

**bitops.rs** (282 new lines):
- All combinations of `BitAnd` operations (AllTrue, AllFalse, Values)
- `Not` operations for all mask variants
- Boolean algebra property tests:
  - Associativity, commutativity, identity, annihilator, idempotence
  - De Morgan's law validation
  - Double negation
- Edge cases (empty masks, different lengths)

**eq.rs** (113 new lines):
- Equality tests for different lengths, true counts, positions
- Reflexive, symmetric, and transitive properties
- Empty mask behavior
- Different internal representations with same logical values

**intersect_by_rank.rs** (97 new lines):
- Parameterized tests using rstest for special cases
- Edge cases (all true/false combinations)
- Pattern-based tests (single element, alternating, consecutive)
- Panic test for wrong length inputs

**tests.rs** (new file, 673 lines):
- All tests from lib.rs moved here
- Extensive coverage of mask creation, properties, operations
- Caching behavior verification
- `AllOr` enum tests
- FromIterator implementations
- Invalid input panic tests

#### 3. Code Improvements

**lib.rs optimizations**:
- **Fixed `from_excluded_indices`** to return optimize... (continued)

674 of 682 new or added lines in 5 files covered. (98.83%)

51446 of 60372 relevant lines covered (85.22%)

561312.07 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
8
98.03
vortex-mask/src/tests.rs
Jobs
ID Job ID Ran Files Coverage
1 run-tpc-h - 16839690806.1 08 Aug 2025 08:24PM UTC 581
48.1
GitHub Action Run
2 run-tests - 16839690806.2 08 Aug 2025 08:25PM UTC 639
82.98
GitHub Action Run
Source Files on build 16839690806
  • Tree
  • List 639
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16839690806
  • 3d2b3bb9 on github
  • Prev Build on develop (#16839629431)
  • Next Build on develop (#16840805129)
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