Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve tests found by cargo-mutants #149

Merged
merged 1 commit into from
Sep 14, 2024
Merged

Improve tests found by cargo-mutants #149

merged 1 commit into from
Sep 14, 2024

Conversation

x-hgg-x
Copy link
Collaborator

@x-hgg-x x-hgg-x commented Sep 14, 2024

Output of the last version of cargo-mutants for this crate:

MISSED   src/format/mod.rs:513:41: replace % with / in Piece::fmt in 0.3s build + 0.5s test
MISSED   src/format/mod.rs:117:16: replace |= with ^= in Flags::set in 0.2s build + 0.5s test
MISSED   src/format/mod.rs:652:50: replace < with == in Piece::fmt in 0.3s build + 0.5s test
TIMEOUT  src/format/utils.rs:26:9: replace Cursor<'a>::next -> Option<u8> with Some(0) in 0.2s build + 20.0s test
TIMEOUT  src/format/mod.rs:911:13: replace /= with %= in year_width in 0.2s build + 20.0s test
TIMEOUT  src/format/utils.rs:26:9: replace Cursor<'a>::next -> Option<u8> with Some(1) in 0.2s build + 20.0s test
MISSED   src/format/mod.rs:123:44: replace | with ^ in Flags::has_change_or_upper_case in 0.2s build + 0.5s test
MISSED   src/format/mod.rs:508:41: replace % with / in Piece::fmt in 0.2s build + 0.5s test
MISSED   src/format/mod.rs:684:50: replace < with == in Piece::fmt in 0.3s build + 0.5s test
MISSED   src/format/mod.rs:96:21: replace << with >> in 0.3s build + 0.5s test

This PR improves tests to catch these potential bugs. The main code is still correct and has not changed.

@x-hgg-x x-hgg-x merged commit d3a3f3b into trunk Sep 14, 2024
13 checks passed
@x-hgg-x x-hgg-x deleted the cargo-mutants branch September 14, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants