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

prisma-risk / tsoracle / 26373779888
95%

Build:
DEFAULT BRANCH: main
Ran 24 May 2026 09:58PM 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 09:54PM UTC coverage: 94.937% (+0.03%) from 94.91%
26373779888

push

github

web-flow
refactor(server): extract shared serve_inner from the two serve paths (#322)

serve_with_shutdown and serve_with_listener were ~90% identical: both
set up a cancel oneshot, build a combined shutdown future, pin the serve
future, and run the same biased select with the abort and
combine_watch_and_drain translation. Only the serve-future construction
differed (address-bound serve_with_shutdown vs listener-bound
serve_with_incoming_shutdown), so any future change to the drain or
error-mapping logic had to be made twice.

Extract two private helpers:

- serve_inner(watch_handle, serve_future, cancel_tx) owns the pin, the
  biased select, the abort path, and the drain/translate logic.
- combined_shutdown_with_cancel(shutdown) owns the oneshot plus the
  merged shutdown future, the other duplicated half.

Both public methods now build only their serve future and delegate.
All explanatory comments move to serve_inner's single home. No public
API or behavior change; the existing embedded_router, serve_shutdown,
and server_serve_with_listener tests pass unchanged.

Closes #92

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

11308 of 11911 relevant lines covered (94.94%)

479883.48 hits per line

Jobs
ID Job ID Ran Files Coverage
1 26373779888.1 24 May 2026 09:58PM UTC 75
94.94
GitHub Action Run
Source Files on build 26373779888
  • Tree
  • List 75
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26373779888
  • bf43c45e on github
  • Prev Build on main (#26373774737)
  • Next Build on main (#26373876980)
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