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

databendlabs / openraft / 22906186010
88%

Build:
DEFAULT BRANCH: main
Ran 10 Mar 2026 02:02PM UTC
Jobs 1
Files 258
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

10 Mar 2026 01:59PM UTC coverage: 87.554% (-0.02%) from 87.576%
22906186010

push

github

drmingdrmer
change: in 0.10.0: decouple `StoredMembership`, `SnapshotSignature`, `SnapshotMeta`, `Snapshot` from `RaftTypeConfig`

Replace `C: RaftTypeConfig` with the specific type parameters each
struct actually needs, continuing the type decoupling effort.

- `StoredMembership<C>` → `StoredMembership<CLID, NID, N>`
  Uses `LogId<CLID>` and `Membership<NID, N>`.

- `SnapshotSignature<C>` → `SnapshotSignature<CLID>`
  Only uses `LogId<CLID>`.

- `SnapshotMeta<C>` → `SnapshotMeta<CLID, NID, N>`
  Uses `LogId<CLID>` and `StoredMembership<CLID, NID, N>`.

- `Snapshot<C>` → `Snapshot<CLID, NID, N, SD>`
  Uses `SnapshotMeta<CLID, NID, N>` and snapshot data `SD`.

Type aliases `StoredMembershipOf<C>`, `SnapshotSignatureOf<C>`,
`SnapshotMetaOf<C>`, and `SnapshotOf<C>` are added for callers
that have `C: RaftTypeConfig` available.

Upgrade tip:

    // Before
    StoredMembership<MyConfig>
    SnapshotMeta<MyConfig>
    Snapshot<MyConfig>

    // After (with type alias)
    use openraft::alias::StoredMembershipOf;
    StoredMembershipOf<MyConfig>
    SnapshotMetaOf<MyConfig>
    SnapshotOf<MyConfig>

    // After (direct)
    StoredMembership<MyClid, MyNodeId, MyNode>
    SnapshotMeta<MyClid, MyNodeId, MyNode>
    Snapshot<MyClid, MyNodeId, MyNode, MySnapshotData>

112 of 120 new or added lines in 29 files covered. (93.33%)

5 existing lines in 2 files now uncovered.

15898 of 18158 relevant lines covered (87.55%)

146199.09 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% legacy/src/network_v1/adapter.rs
1
0.0
0.0% legacy/src/network_v1/sender.rs
1
73.08
0.0% legacy/src/network_v1/snapshot_receiver.rs
1
87.5
0.0% openraft/src/membership/stored_membership.rs
1
50.0
0.0% openraft/src/storage/snapshot.rs
1
85.0
8.08% openraft/src/storage/snapshot_meta.rs
2
50.0
0.0% openraft/src/errors/storage_error.rs

Uncovered Existing Lines

Lines Coverage ∆ File
2
93.39
-1.65% openraft/src/replication/stream_state.rs
3
86.96
-3.26% openraft/src/core/heartbeat/worker.rs
Jobs
ID Job ID Ran Files Coverage
1 22906186010.1 10 Mar 2026 02:02PM UTC 258
87.55
GitHub Action Run
Source Files on build 22906186010
  • Tree
  • List 258
  • Changed 47
  • Source Changed 45
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22906186010
  • daa099d6 on github
  • Prev Build on main (#22899709416)
  • Next Build on main (#22907664414)
  • 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