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

databendlabs / openraft / 18315928315
88%

Build:
DEFAULT BRANCH: main
Ran 07 Oct 2025 02:29PM UTC
Jobs 1
Files 197
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

07 Oct 2025 02:07PM UTC coverage: 91.11% (+0.09%) from 91.019%
18315928315

push

github

drmingdrmer
refactor: replace Debug with Display for RaftMsg formatting

Replace Debug formatting with Display in `RaftMsg` and implement Display
trait for `ChangeMembers` to improve log message readability. The change
removes Debug's verbose output in favor of cleaner, more concise Display
formatting.

Add three new display helper modules to support allocation-free Display
implementations:

- `DisplayBTreeMap`: formats `BTreeMap<K,V>` as "key:value,..." when
  both K and V implement Display

- `DisplayBTreeMapDebugValue`: formats `BTreeMap<K,V>` as
  "key:value,..." when K implements Display and V implements Debug

- `DisplayBTreeSet`: formats `BTreeSet<T>` as "[item,...]" when T
  implements Display

Update `RaftMsg::Initialize` to use `members.display()` instead of
`{:?}` formatting and `RaftMsg::ChangeMembership` to format `changes`
with Display instead of Debug. Remove TODO comments about avoiding Debug
formatting as the issue is now resolved.

All Display implementations iterate directly over collections without
intermediate allocations, ensuring zero-cost formatting in log paths.

96 of 105 new or added lines in 5 files covered. (91.43%)

1 existing line in 1 file now uncovered.

11355 of 12463 relevant lines covered (91.11%)

103177.68 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
88.89
openraft/src/display_ext/display_btreemap.rs
6
76.0
-24.0% openraft/src/change_members.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
82.09
0.0% openraft/src/metrics/serde_instant.rs
Jobs
ID Job ID Ran Files Coverage
1 18315928315.1 07 Oct 2025 02:29PM UTC 197
91.11
GitHub Action Run
Source Files on build 18315928315
  • Tree
  • List 197
  • Changed 5
  • Source Changed 2
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18315928315
  • d4f6ef24 on github
  • Prev Build on main (#18273107676)
  • Next Build on main (#18317228220)
  • 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