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

databendlabs / openraft / 19464825609
88%

Build:
DEFAULT BRANCH: main
Ran 18 Nov 2025 11:42AM UTC
Jobs 1
Files 219
Run time 4min
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

18 Nov 2025 11:31AM UTC coverage: 92.163% (-0.09%) from 92.248%
19464825609

push

github

drmingdrmer
change: in 0.10.0: remove `Default` from `RaftVote` trait bounds

Remove the `Default` bound from `RaftVote` trait since a `Vote` always requires
a `node_id` and a truly default value is semantically meaningless. This prepares
for making `LeaderId::node_id()` return a non-Option value.

Changes:
- Add `RaftServerMetrics::new_empty()` to create initial server metrics with proper vote
- Update `RaftMetrics::new_initial()` to use `Vote::new_with_default_term()`
- Update `RaftState::default()` to require `NodeId: Default` and create proper vote for testing

Upgrade tip:

If you implement custom `RaftVote`, you no longer need to implement `Default`.

For code that used `Vote::default()`, replace with:
- `VoteOf::<C>::new_with_default_term(node_id)` for creating initial votes
- `RaftServerMetrics::new_empty(id)` for creating empty server metrics

23 of 23 new or added lines in 4 files covered. (100.0%)

16 existing lines in 4 files now uncovered.

13148 of 14266 relevant lines covered (92.16%)

150912.74 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
83.33
0.0% openraft/src/metrics/serde_instant.rs
3
79.17
-12.5% openraft/src/core/sm/handle.rs
4
85.12
-1.24% openraft/src/replication/mod.rs
8
77.01
-9.2% openraft/src/utime.rs
Jobs
ID Job ID Ran Files Coverage
1 19464825609.1 18 Nov 2025 11:42AM UTC 219
92.16
GitHub Action Run
Source Files on build 19464825609
  • Tree
  • List 219
  • Changed 10
  • Source Changed 6
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19464825609
  • d814c98b on github
  • Prev Build on main (#19459132859)
  • Next Build on main (#19466256809)
  • 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