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

prisma-risk / tsoracle / 26371989549
95%

Build:
DEFAULT BRANCH: main
Ran 24 May 2026 08:34PM 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 08:30PM UTC coverage: 94.912% (+0.02%) from 94.895%
26371989549

push

github

web-flow
feat(openraft-toolkit): promote leadership stream by-value entry to stable API (#310)

`stream_from_receiver` carried `#[doc(hidden)]` and a "not part of the
public API and may change without notice" comment while being declared
`pub fn` in a `pub mod` — so it was on the API surface regardless, and
two crates depended on it (the openraft driver and the toolkit's own
integration tests). `doc(hidden)` only hides from rustdoc; it does not
remove the symbol from the public surface.

The by-value form is genuinely needed: the driver builds a `'static`
leadership stream from an owned `host.metrics()` receiver, which the
borrowed `leadership_events(&raft)` form cannot provide, and the
integration tests inject synthetic watch channels through it to exercise
the #77 full-value dedup logic without a live cluster. Hiding it would
break both unless the dedup logic were duplicated.

Promote it to a stable, documented public API:

- Rename `stream_from_receiver` -> `leadership_events_from_metrics` so it
  pairs explicitly with `leadership_events(&raft)`.
- Remove `#[doc(hidden)]` and the disclaimer; document the by-value /
  `'static` use case and the shared dedup contract; pin the signature.
- Re-export it at the crate root and `lifecycle::`, beside
  `leadership_events`.
- Update both consumers and the standalone example's README (which also
  misstated the dedup as role-class-only; corrected to full-value).

Closes #98

2 of 3 new or added lines in 2 files covered. (66.67%)

11267 of 11871 relevant lines covered (94.91%)

465547.5 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
86.67
0.0% crates/tsoracle-openraft-toolkit/src/lifecycle/leader.rs
Jobs
ID Job ID Ran Files Coverage
1 26371989549.1 24 May 2026 08:34PM UTC 75
94.91
GitHub Action Run
Source Files on build 26371989549
  • Tree
  • List 75
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26371989549
  • 9980a15b on github
  • Prev Build on main (#26371766671)
  • Next Build on main (#26372182799)
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