Skip to content

Commit 7248b76

Browse files
committed
Fix missing newlines in list files
1 parent ae6bfe1 commit 7248b76

6 files changed

+37
-1
lines changed

src/output.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ impl OutputDir {
195195
SummaryOutcome::Unviable => &mut self.unviable_list,
196196
_ => return Ok(()),
197197
};
198-
write!(file, "{}", mutant.format_as_error_message()).context("write to list file")?;
198+
writeln!(file, "{}", mutant.format_as_error_message()).context("write to list file")?;
199199
}
200200
Ok(())
201201
}

tests/cli.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ fn well_tested_tree_finds_no_problems() {
585585
.path()
586586
.join("mutants.out/outcomes.json")
587587
.exists());
588+
check_text_list_output(tmp_src_dir.path(), "well_tested_tree_finds_no_problems");
588589
}
589590

590591
#[test]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
source: tests/cli.rs
3+
expression: content
4+
---
5+
src/inside_mod.rs:3: replace outer::inner::name with Default::default()
6+
src/methods.rs:16: replace Foo::double with ()
7+
src/methods.rs:22: replace <impl Display for Foo>::fmt with Ok(Default::default())
8+
src/methods.rs:28: replace <impl Debug for &Foo>::fmt with Ok(Default::default())
9+
src/nested_function.rs:1: replace has_nested with Default::default()
10+
src/nested_function.rs:2: replace has_nested::inner with Default::default()
11+
src/result.rs:5: replace simple_result with Ok(Default::default())
12+
src/result.rs:9: replace error_if_negative with Ok(Default::default())
13+
src/simple_fns.rs:7: replace returns_unit with ()
14+
src/simple_fns.rs:12: replace returns_42u32 with Default::default()
15+
src/simple_fns.rs:17: replace divisible_by_three with true
16+
src/simple_fns.rs:17: replace divisible_by_three with false
17+
src/simple_fns.rs:26: replace double_string with "".into()
18+
src/simple_fns.rs:26: replace double_string with "xyzzy".into()
19+
src/struct_with_lifetime.rs:14: replace Lex<'buf>::buf_len with Default::default()
20+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
source: tests/cli.rs
3+
expression: content
4+
---
5+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
source: tests/cli.rs
3+
expression: content
4+
---
5+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
source: tests/cli.rs
3+
expression: content
4+
---
5+

0 commit comments

Comments
 (0)