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

databendlabs / openraft / 18315928334 / 1
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: release-0.10
DEFAULT BRANCH: main
Ran 07 Oct 2025 02:29PM UTC
Files 197
Run time 7s
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.134% (+0.1%) from 91.019%
18315928334.1

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.

11358 of 12463 relevant lines covered (91.13%)

102963.9 hits per line

Source Files on job 18315928334.1
  • Tree
  • List 197
  • Changed 5
  • Source Changed 2
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 18315928334
  • d4f6ef24 on github
  • Prev Job for on release-0.10 (#18273107676.1)
  • Next Job for on release-0.10 (#18317228227.1)
  • 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