Skip to content

Commit 17f58f0

Browse files
committed
mutants: Skip error handling that's really not tested yet
#286
1 parent 069fbbc commit 17f58f0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.cargo/mutants.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ exclude_re = [
55
"<impl Display",
66
# spins forever returning empty vecs
77
"replace <impl Iterator for IterStitchedIndexHunks>::next -> Option<Self::Item> with Some\\(Default::default\\(\\)\\)",
8+
# finds some real lacking coverage of error handling: https://github.com/sourcefrog/conserve/issues/286
9+
"src/blockdir.rs:.*: replace match guard"
810
]
911

1012
# Include only files that are currently well-tested; most of the others should

src/transport/local.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ mod test {
294294

295295
temp.close().unwrap();
296296
}
297-
297+
298298
#[cfg(unix)]
299299
#[test]
300300
fn list_dir_skips_symlinks() {
@@ -303,7 +303,7 @@ mod test {
303303
let transport = Transport::temp();
304304
let dir = transport.local_path().unwrap();
305305
std::os::unix::fs::symlink("foo", dir.join("alink")).unwrap();
306-
306+
307307
let list_dir = transport.list_dir(".").unwrap();
308308
assert_eq!(list_dir.files, [""; 0]);
309309
assert_eq!(list_dir.dirs, [""; 0]);

0 commit comments

Comments
 (0)