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

prisma-risk / tsoracle / 26373019483
95%

Build:
DEFAULT BRANCH: main
Ran 24 May 2026 09:22PM 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:18PM UTC coverage: 94.924% (-0.007%) from 94.931%
26373019483

push

github

web-flow
feat(server): add Server::subscribe() and demote state_rx to pub(crate) (#317)

`state_rx` was the only `pub` field among the eight on `Server`; the other
seven are `pub(crate)`. Exposing the `watch::Receiver` as a bare public field
pinned the serving-state observation API to a concrete field type — a future
newtype around `ServingState`, or any change to the receiver's type, would be
a breaking change to a public field rather than to a method.

Add `pub fn subscribe(&self) -> watch::Receiver<ServingState>` as the stable
observation API and demote `state_rx` to `pub(crate)`. Embedders that switch
to `subscribe()` are insulated from future representation changes.

Migrate every out-of-crate consumer (examples, integration tests, and the
tsoracle-tests crate) from `state_rx.clone()` to `subscribe()`, and dogfood
the method from the in-crate test support helpers. The in-crate service hot
path keeps its direct `state_rx.borrow()` access.

Closes #246

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

1 existing line in 1 file now uncovered.

11296 of 11900 relevant lines covered (94.92%)

442202.06 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
96.49
-0.19% crates/tsoracle-client/src/driver.rs
Jobs
ID Job ID Ran Files Coverage
1 26373019483.1 24 May 2026 09:22PM UTC 75
94.92
GitHub Action Run
Source Files on build 26373019483
  • 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 #26373019483
  • e2786d4e on github
  • Prev Build on main (#26372866089)
  • Next Build on main (#26373165176)
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