Clippy on test code: tests/common uses expect() without the allow #379

Closed
opened 2026-09-25 07:59:09 +00:00 by sharang · 1 comment
Owner

Problem

cargo clippy -p compliance-agent --tests -- -D warnings fails on expect() calls in compliance-agent/tests/common/mod.rs:65,83,86. CI lints without --tests, so this goes unnoticed.

Done when

The test helpers comply, or allow the lint explicitly, as the other test files do (#![allow(clippy::expect_used, clippy::unwrap_used)]), and clippy with --tests is clean.

## Problem `cargo clippy -p compliance-agent --tests -- -D warnings` fails on `expect()` calls in `compliance-agent/tests/common/mod.rs:65,83,86`. CI lints without `--tests`, so this goes unnoticed. ## Done when The test helpers comply, or allow the lint explicitly, as the other test files do (`#![allow(clippy::expect_used, clippy::unwrap_used)]`), and clippy with `--tests` is clean.
sharang added this to the Production MVP milestone 2026-09-25 07:59:09 +00:00
sharang added the infrastructure label 2026-09-25 07:59:09 +00:00
Author
Owner

Also found (2026-09-25): cargo test -p compliance-core --test models doesn't compile on main. compliance-core/tests/models.rs:381 still uses TrackedRepository, which no longer exists. CI runs only --lib tests, so the integration tests in compliance-core/tests/ never run.

Done when: the file compiles, and CI runs compliance-core's integration tests.

Also found (2026-09-25): `cargo test -p compliance-core --test models` doesn't compile on main. `compliance-core/tests/models.rs:381` still uses `TrackedRepository`, which no longer exists. CI runs only `--lib` tests, so the integration tests in `compliance-core/tests/` never run. Done when: the file compiles, and CI runs `compliance-core`'s integration tests.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#379