From bf7e00fe7d64a3c00ddb49dea0b46fc824a928b2 Mon Sep 17 00:00:00 2001 From: cargo-affected-bot <282014906+cargo-affected-bot@users.noreply.github.com> Date: Tue, 11 Aug 2026 06:41:18 +0000 Subject: [PATCH] tests: correct two inaccurate statements in surveyed scenarios --- tests/functional/clean.rs | 3 +-- tests/functional/db_has_function_ranges.rs | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/functional/clean.rs b/tests/functional/clean.rs index 97f736b..59a8a2b 100644 --- a/tests/functional/clean.rs +++ b/tests/functional/clean.rs @@ -58,8 +58,7 @@ fn clean_then_status_reports_no_coverage() { assert!(post.status.success()); let post_stdout = String::from_utf8_lossy(&post.stdout); assert!( - post_stdout.contains("no coverage data yet") - || post_stdout.contains("no coverage data found"), + post_stdout.contains("no coverage data yet"), "post-clean status should report no coverage, got:\n{post_stdout}" ); assert!( diff --git a/tests/functional/db_has_function_ranges.rs b/tests/functional/db_has_function_ranges.rs index b8a791d..d425ecf 100644 --- a/tests/functional/db_has_function_ranges.rs +++ b/tests/functional/db_has_function_ranges.rs @@ -18,8 +18,8 @@ //! the far end. //! //! Definition of `CRATE_ROOT_SENTINEL_END` lives in `src/coverage.rs`. It's -//! `pub`, but `cargo-affected` ships only a `[[bin]]` target with no library, -//! so we hard-code `i64::MAX` here. +//! `pub(crate)` — and `cargo-affected` ships only a `[[bin]]` target with no +//! library anyway — so we hard-code `i64::MAX` here. use crate::{cargo_affected, init_git_with_initial_commit, write_two_module_project};