This PR: * Added the clippy.toml to configure allowable expect / unwrap usage in tests * Removed as many expect/allow lines as possible from tests * moved a bunch of allows to expects where possible Note: in integration tests, non `#[test]` helper functions are not covered by this so we had to leave a few lingering `expect(expect_used` checks around
10 lines
366 B
Rust
10 lines
366 B
Rust
use codex_execpolicy::PositiveExampleFailedCheck;
|
|
use codex_execpolicy::get_default_policy;
|
|
|
|
#[test]
|
|
fn verify_everything_in_good_list_is_allowed() {
|
|
let policy = get_default_policy().expect("failed to load default policy");
|
|
let violations = policy.check_each_good_list_individually();
|
|
assert_eq!(Vec::<PositiveExampleFailedCheck>::new(), violations);
|
|
}
|