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

prisma-risk / tsoracle / 26368837491
95%

Build:
DEFAULT BRANCH: main
Ran 24 May 2026 06:11PM UTC
Jobs 1
Files 75
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

24 May 2026 06:06PM UTC coverage: 94.839% (+0.03%) from 94.809%
26368837491

push

github

web-flow
refactor(core): extract projected_grant; try_grant writes back only on success (#250) (#301)

try_grant advanced next_physical_ms/next_logical before the PhysicalMsOutOfRange and WindowExhausted checks, so a failed grant left allocator state advanced — safe today (advances are forward-only) but surprising and untested on the advance->fail->extend->retry path. would_grant separately re-implemented the same advance simulation, kept in sync only by a prose doc comment.

Extract a pure associated fn project_grant(next_physical_ms, next_logical, committed_high_water, now_ms, count) -> Result<(physical_ms, logical_start), CoreError> owning the wall-clock advance, logical-wrap advance, and both bounds checks. try_grant now calls it and writes state back only on success; would_grant delegates via .is_ok(). Result (not Option) preserves the PhysicalMsOutOfRange vs WindowExhausted distinction try_grant's callers require.

Adds a regression test asserting a failed try_grant does not pin next_physical_ms to the failed attempt's wall clock.

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

11099 of 11703 relevant lines covered (94.84%)

495489.24 hits per line

Jobs
ID Job ID Ran Files Coverage
1 26368837491.1 24 May 2026 06:11PM UTC 75
94.84
GitHub Action Run
Source Files on build 26368837491
  • Tree
  • List 75
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26368837491
  • 8f67ff98 on github
  • Prev Build on main (#26368659303)
  • Next Build on main (#26368912159)
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