Skip to content

Commit

Permalink
Merge branch 'main' into binops
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Jan 14, 2024
2 parents 4ee05e4 + cf48041 commit 8485b07
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 6 deletions.
21 changes: 21 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
abstract: Find inadequately-tested code that can be removed without any tests failing.
authors:
- alias: sourcefrog
family-names: Pool
given-names: Martin
cff-version: 1.2.0
date-released: 2024-01-13
keywords:
- Rust
- cargo
- coverage
- development-tools::testing
- mutants
- mutation-testing
- testing
license: MIT
message: Please cite this project using these information.
repository-code: https://github.com/sourcefrog/cargo-mutants
title: cargo-mutants
url: https://mutants.rs/
version: 24.1.0
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,10 @@ targets = [
[profile.dist]
inherits = "release"
lto = "thin"

# Config for <https://github.com/crate-ci/cargo-release/blob/master/docs/reference.md>
[workspace.metadata.release]
pre-release-replacements = [
{ "file" = "NEWS.md", search = "## Unreleased", replace = "$0\n ## {{version}}", exactly = 1 },
{ "file" = "CITATION.cff", search = "^version: .*", replace = "version: {{version}}", exactly = 1 },
]
8 changes: 4 additions & 4 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

## Unreleased

- New: Mutate `+, -, *, /, %, &, ^, |, <<, >>` binary ops, and their corresponding assignment ops like `+=`.

- Changed: Stop generating mutations of `||` and `&&` to `!=` and `||`, because it seems to raise too many low-value false positives that may be hard to test.

## 24.1.0

- New! `cargo mutants --test-tool nextest`, or `test_tool = "nextest"` in `.cargo/mutants.toml` runs tests under [Nextest](https://nexte.st/). Some trees have tests that only work under Nextest, and this allows them to be tested. In other cases Nextest may be significantly faster, because it will exit soon after the first test failure.

- Fixed: Fixed spurious "Patch input contains repeated filenames" error when `--in-diff` is given a patch that deletes multiple files.

- New: Mutate `+, -, *, /, %, &, ^, |, <<, >>` binary ops, and their corresponding assignment ops like `+=`.

- Changed: Stop generating mutations of `||` and `&&` to `!=` and `||`, because it seems to raise too many low-value false positives that may be hard to test.

## 23.12.2

- New: A `--shard k/n` allows you to split the work across n independent parallel `cargo mutants` invocations running on separate machines to get a faster overall solution on large suites. You, or your CI system, are responsible for launching all the shards and checking whether any of them failed.
Expand Down
1 change: 0 additions & 1 deletion src/console.rs
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,6 @@ impl CopyModel {
/// Update that some bytes have been copied.
///
/// `bytes_copied` is the total bytes copied so far.
#[allow(dead_code)]
fn bytes_copied(&mut self, bytes_copied: u64) {
self.bytes_copied = bytes_copied
}
Expand Down
2 changes: 1 addition & 1 deletion src/copy_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pub fn copy_tree(
})?;
total_bytes += bytes_copied;
total_files += 1;
console.copy_progress(bytes_copied);
console.copy_progress(total_bytes);
} else if ft.is_dir() {
std::fs::create_dir_all(&dest_path)
.with_context(|| format!("Failed to create directory {dest_path:?}"))?;
Expand Down

0 comments on commit 8485b07

Please sign in to comment.