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

vigna / dsi-bitstream-rs / 29740807880
65%

Build:
DEFAULT BRANCH: main
Ran 20 Jul 2026 12:07PM UTC
Jobs 1
Files 43
Run time 1min
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

20 Jul 2026 11:52AM UTC coverage: 64.573% (+6.3%) from 58.294%
29740807880

push

github

zommiommy
fix(reader): align the peek_bits contract and assertions with PEEK_BITS

The BitRead::peek_bits doc said n may be as large as PeekWord::BITS, and
both BufBitReader implementations debug_assert!-ed that same loose bound,
but PEEK_BITS is one word and peek_bits performs at most one refill: for a
u32-word reader with an empty buffer, a documented peek_bits(64) loads only
32 bits (failing the availability assertion in debug builds and returning
an invalid partial value in release builds). The guarantee is PEEK_BITS,
so the trait doc, the stale BufBitReader doc paragraph (which still
advertised word size plus one), and the entry assertions now all say
PEEK_BITS.

Tests cover both sides of the boundary: peek_bits(PEEK_BITS) from a
completely empty buffer must be served by a single refill for u16/u32/u64
words and both endiannesses, and peek_bits(PEEK_BITS + 1) panics in debug
builds.

2 of 2 new or added lines in 1 file covered. (100.0%)

300 existing lines in 9 files now uncovered.

2570 of 3980 relevant lines covered (64.57%)

2512407.34 hits per line

Coverage Regressions

Lines Coverage ∆ File
99
68.44
6.38% src/impls/buf_bit_reader.rs
68
57.59
12.57% src/utils/stats.rs
65
0.0
0.0% benches/vbyte.rs
21
43.24
16.88% src/dispatch/codes.rs
13
91.33
-7.72% src/codes/vbyte.rs
11
70.45
0.0% src/codes/params.rs
10
93.24
1.41% src/utils/count.rs
9
84.77
0.0% src/impls/bit_reader.rs
4
60.0
10.0% src/traits/words.rs
Jobs
ID Job ID Ran Files Coverage
1 29740807880.1 20 Jul 2026 12:07PM UTC 43
64.57
GitHub Action Run
Source Files on build 29740807880
  • Tree
  • List 43
  • Changed 19
  • Source Changed 17
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29740807880
  • 70ce2ec1 on github
  • Prev Build on main (#29653800427)
  • Next Build on main (#29741127780)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc