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

databendlabs / openraft / 20391524544
88%

Build:
DEFAULT BRANCH: main
Ran 20 Dec 2025 08:07AM UTC
Jobs 1
Files 240
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

20 Dec 2025 07:57AM UTC coverage: 92.341% (+0.05%) from 92.294%
20391524544

push

github

drmingdrmer
refactor: redesign `LeaderLogIds` with explicit fields and iterator support

Replace the internal `Option<RangeInclusive<LogIdOf<C>>>` representation with
explicit `committed_leader_id`, `first`, and `last` fields. The struct now
always represents a non-empty closed range `[first, last]`, with `Option<LeaderLogIds>`
used at call sites when an empty range is needed.

Changes:
- Change `LeaderLogIds` to store `committed_leader_id`, `first`, `last` explicitly
- Add `first_ref()`, `last_ref()`, `ref_at()` methods returning `RefLogId`
- Add `first_log_id()`, `last_log_id()`, `get()`, `len()` methods
- Implement `IntoIterator` yielding `LogIdOf<C>` with `DoubleEndedIterator` support
- Update `assign_log_ids()` to return `Option<LeaderLogIds>`

277 of 283 new or added lines in 8 files covered. (97.88%)

11 existing lines in 3 files now uncovered.

15420 of 16699 relevant lines covered (92.34%)

145236.45 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
95.38
16.22% openraft/src/engine/leader_log_ids.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
83.33
0.0% openraft/src/metrics/serde_instant.rs
2
96.86
-0.9% openraft/src/replication/mod.rs
8
90.22
-5.43% openraft/src/core/heartbeat/worker.rs
Jobs
ID Job ID Ran Files Coverage
1 20391524544.1 20 Dec 2025 08:07AM UTC 240
92.34
GitHub Action Run
Source Files on build 20391524544
  • Tree
  • List 240
  • Changed 10
  • Source Changed 7
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20391524544
  • 6a51924c on github
  • Prev Build on main (#20390973294)
  • Next Build on main (#20392179507)
  • Delete
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