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

prisma-risk / tsoracle / 26414238840
95%

Build:
DEFAULT BRANCH: main
Ran 25 May 2026 06:30PM UTC
Jobs 1
Files 67
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 06:21PM UTC coverage: 96.585%. Remained the same
26414238840

push

github

web-flow
refactor(core): extract validate_count to dedup the allocator count guard (#428)

try_grant and would_grant each carried their own copy of the count
bounds check (count == 0 || count > LOGICAL_MAX + 1). The server's
extension single-flight (service::extend_window) skips a consensus
round-trip whenever would_grant returns true, trusting that the retry
try_grant will then succeed. The count guard was the one rejection rule
duplicated verbatim between the two paths, so a future edit to one and
not the other could drift the rejected-count sets apart and degrade the
recheck into a spurious INTERNAL (or a skipped-then-failing extension)
under load.

Route both methods through a single private validate_count helper, next
to the existing project_grant helper that already centralizes the
window-advance simulation. Behavior is unchanged: try_grant's two former
branches (InvalidCount(0) for zero, InvalidCount(count) for oversized)
collapse to one InvalidCount(count), which is identical when count is 0;
would_grant still returns false via is_err().

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

10323 of 10688 relevant lines covered (96.58%)

554988.23 hits per line

Jobs
ID Job ID Ran Files Coverage
1 26414238840.1 25 May 2026 06:30PM UTC 67
96.58
GitHub Action Run
Source Files on build 26414238840
  • Tree
  • List 67
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26414238840
  • 123c8f3a on github
  • Prev Build on main (#26414231663)
  • Next Build on main (#26414400584)
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