Skip to content

Commit

Permalink
Test statistics from copy_tree
Browse files Browse the repository at this point in the history
Covers one mutants gap
  • Loading branch information
sourcefrog committed Feb 27, 2024
1 parent 1f01640 commit a0238fe
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use itertools::Itertools;
use predicate::str::{contains, is_match};
use predicates::prelude::*;
use pretty_assertions::assert_eq;

use subprocess::{Popen, PopenConfig, Redirection};
use tempfile::TempDir;

Expand Down Expand Up @@ -77,8 +78,15 @@ fn tree_with_child_directories_is_well_tested() {
.arg("mutants")
.arg("-d")
.arg(tmp_src_dir.path())
.arg("-Ldebug")
.assert()
.success();
.success()
.stderr(
predicate::str::is_match(
r#"DEBUG Copied source tree total_bytes=\d{3,} total_files=14"#,
)
.unwrap(),
);
}

#[test]
Expand Down

0 comments on commit a0238fe

Please sign in to comment.