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

prisma-risk / tsoracle / 26213504134
95%

Build:
DEFAULT BRANCH: main
Ran 21 May 2026 08:05AM UTC
Jobs 1
Files 30
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

21 May 2026 08:02AM UTC coverage: 93.495% (+0.01%) from 93.485%
26213504134

push

github

web-flow
chore(lints): warn on unwrap/expect in non-test code (#28)

Each library/binary crate root now carries

    #![cfg_attr(not(test), warn(clippy::unwrap_used, clippy::expect_used))]

so CI's `cargo clippy ... -- -D warnings` blocks any new `.unwrap()` /
`.expect()` in `src/`. The `cfg_attr(not(test), ...)` form scopes the lint to
non-test builds of each crate, and inner attributes don't propagate to
`tests/`, `examples/`, or `benches/` — those are separate compilation units.
This sidesteps two upstream clippy limitations
(rust-lang/rust-clippy#9612 and rust-lang/rust-clippy#13981) where the
`clippy.toml` `allow-{unwrap,expect}-in-tests` setting fails to cover helper
fns inside test modules and code in the `tests/` directory.

The six pre-existing runtime `.expect(...)` callsites get
`#[expect(clippy::expect_used, reason = "...")]` markers explaining the
invariant and linking to the relevant tracking issue:

  - allocator convenience wrappers (#4): on_leadership_gained,
    prepare_window_extension, commit_window_extension
  - client driver_task first_arrival (#8)
  - server leader-hint metadata key (#5)
  - server reflection FILE_DESCRIPTOR_SET (#9)

The two `openraft-toolkit::log_store` cf_handle helpers carry inline
invariant rationale since the column families are validated at open.

CONTRIBUTING.md gets a new "Panic policy" section documenting the mechanism,
the upstream clippy bugs we sidestep, and the convention for adding new
`#[expect]` exemptions (explain invariant + link tracking issue).

Closes #6.

4 of 4 new or added lines in 1 file covered. (100.0%)

2429 of 2598 relevant lines covered (93.49%)

201361.19 hits per line

Jobs
ID Job ID Ran Files Coverage
1 26213504134.1 21 May 2026 08:05AM UTC 30
93.49
GitHub Action Run
Source Files on build 26213504134
  • Tree
  • List 30
  • Changed 7
  • Source Changed 7
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26213504134
  • 71aab081 on github
  • Prev Build on main (#26211786498)
  • Next Build on main (#26214097441)
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