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

prisma-risk / tsoracle / 26377626780
95%

Build:
DEFAULT BRANCH: main
Ran 25 May 2026 12:55AM UTC
Jobs 1
Files 79
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

25 May 2026 12:50AM UTC coverage: 94.835% (+0.006%) from 94.829%
26377626780

push

github

web-flow
fix(core): make WindowGrant valid-by-construction so first/last can't panic (#363)

WindowGrant had pub fields and Copy, so any caller could build one with
out-of-range values and call .last(), which packs via Timestamp::pack — an
assert! that bypasses the crate's panic-policy lint banning unwrap/expect on
non-test paths. The in-range invariant was enforced by the single try_grant
constructor, not by the type.

Make the fields private behind a checked try_new constructor: it rejects
count == 0, guards the u32 overflow of logical_start + count - 1, and validates
the range with a single Timestamp::try_pack on the last logical the grant emits
(logical_start <= last_logical <= LOGICAL_MAX, so the first boundary is covered
by implication). first()/last() stay infallible and are now documented as such
because construction was checked. try_grant builds through try_new? —
project_grant already guarantees in-range so it never fails in practice, but it
now propagates a CoreError instead of panicking and stays free of unwrap/expect.

Adds CoreError::LogicalRangeOutOfRange and its out-of-range gRPC mapping in
core_status. Cross-crate readers (service.rs, the leader_watch integration test)
move to the new physical_ms/logical_start/count/epoch accessors.

Closes #347

74 of 78 new or added lines in 2 files covered. (94.87%)

1 existing line in 1 file now uncovered.

11714 of 12352 relevant lines covered (94.83%)

554177.05 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
96.09
-3.1% crates/tsoracle-server/src/service.rs

Coverage Regressions

Lines Coverage ∆ File
1
96.49
-0.19% crates/tsoracle-client/src/driver.rs
Jobs
ID Job ID Ran Files Coverage
1 26377626780.1 25 May 2026 12:55AM UTC 79
94.83
GitHub Action Run
Source Files on build 26377626780
  • Tree
  • List 79
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26377626780
  • 348f3f29 on github
  • Prev Build on main (#26377529042)
  • Next Build on main (#26377743300)
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