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};