Skip to content

Commit 52f2350

Browse files
committed
Bless coverage report.
1 parent c296a48 commit 52f2350

5 files changed

+14
-14
lines changed

src/test/run-make/coverage-reports/expected_show_coverage.closure.txt

+8-8
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
37| 0| countdown = 10;
3838
38| 0| }
3939
39| 0| "alt string 2".to_owned()
40-
40| | };
40+
40| 0| };
4141
41| 1| println!(
4242
42| 1| "The string or alt: {}"
4343
43| 1| ,
@@ -79,7 +79,7 @@
7979
79| 0| countdown = 10;
8080
80| 1| }
8181
81| 1| "alt string 4".to_owned()
82-
82| | };
82+
82| 1| };
8383
83| 1| println!(
8484
84| 1| "The string or alt: {}"
8585
85| 1| ,
@@ -101,7 +101,7 @@
101101
101| 0| countdown = 10;
102102
102| 5| }
103103
103| 5| format!("'{}'", val)
104-
104| | };
104+
104| 5| };
105105
105| 1| println!(
106106
106| 1| "Repeated, quoted string: {:?}"
107107
107| 1| ,
@@ -125,7 +125,7 @@
125125
125| 0| countdown = 10;
126126
126| 0| }
127127
127| 0| "closure should be unused".to_owned()
128-
128| | };
128+
128| 0| };
129129
129| |
130130
130| 1| let mut countdown = 10;
131131
131| 1| let _short_unused_closure = | _unused_arg: u8 | countdown += 1;
@@ -177,7 +177,7 @@
177177
173| 0| println!(
178178
174| 0| "not called: {}",
179179
175| 0| if is_true { "check" } else { "me" }
180-
176| | )
180+
176| 0| )
181181
177| | ;
182182
178| |
183183
179| 1| let short_used_not_covered_closure_line_break_block_embedded_branch =
@@ -187,7 +187,7 @@
187187
183| 0| "not called: {}",
188188
184| 0| if is_true { "check" } else { "me" }
189189
185| | )
190-
186| | }
190+
186| 0| }
191191
187| | ;
192192
188| |
193193
189| 1| let short_used_covered_closure_line_break_no_block_embedded_branch =
@@ -196,7 +196,7 @@
196196
192| 1| "not called: {}",
197197
193| 1| if is_true { "check" } else { "me" }
198198
^0
199-
194| | )
199+
194| 1| )
200200
195| | ;
201201
196| |
202202
197| 1| let short_used_covered_closure_line_break_block_embedded_branch =
@@ -207,7 +207,7 @@
207207
202| 1| if is_true { "check" } else { "me" }
208208
^0
209209
203| | )
210-
204| | }
210+
204| 1| }
211211
205| | ;
212212
206| |
213213
207| 1| if is_false {

src/test/run-make/coverage-reports/expected_show_coverage.generator.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
17| 1| let mut generator = || {
1919
18| 1| yield get_u32(is_true);
2020
19| 1| return "foo";
21-
20| | };
21+
20| 1| };
2222
21| |
2323
22| 1| match Pin::new(&mut generator).resume(()) {
2424
23| 1| GeneratorState::Yielded(Ok(1)) => {}

src/test/run-make/coverage-reports/expected_show_coverage.inline-dead.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
6| 1|
77
7| 1| let f = |x: bool| {
88
8| | debug_assert!(
9-
9| | x
9+
9| 0| x
1010
10| | );
1111
11| 1| };
1212
12| 1| f(false);

src/test/run-make/coverage-reports/expected_show_coverage.uses_inline_crate.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@
6161
46| 4| println!("used_only_from_this_lib_crate_generic_function with {:?}", arg);
6262
47| 4|}
6363
------------------
64-
| used_inline_crate::used_only_from_this_lib_crate_generic_function::<alloc::vec::Vec<i32>>:
64+
| used_inline_crate::used_only_from_this_lib_crate_generic_function::<&str>:
6565
| 45| 2|pub fn used_only_from_this_lib_crate_generic_function<T: Debug>(arg: T) {
6666
| 46| 2| println!("used_only_from_this_lib_crate_generic_function with {:?}", arg);
6767
| 47| 2|}
6868
------------------
69-
| used_inline_crate::used_only_from_this_lib_crate_generic_function::<&str>:
69+
| used_inline_crate::used_only_from_this_lib_crate_generic_function::<alloc::vec::Vec<i32>>:
7070
| 45| 2|pub fn used_only_from_this_lib_crate_generic_function<T: Debug>(arg: T) {
7171
| 46| 2| println!("used_only_from_this_lib_crate_generic_function with {:?}", arg);
7272
| 47| 2|}

src/test/run-make/coverage-reports/expected_show_coverage.yield.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
8| 1| let mut generator = || {
99
9| 1| yield 1;
1010
10| 1| return "foo"
11-
11| | };
11+
11| 1| };
1212
12| |
1313
13| 1| match Pin::new(&mut generator).resume(()) {
1414
14| 1| GeneratorState::Yielded(1) => {}
@@ -24,7 +24,7 @@
2424
24| 1| yield 2;
2525
25| 0| yield 3;
2626
26| 0| return "foo"
27-
27| | };
27+
27| 0| };
2828
28| |
2929
29| 1| match Pin::new(&mut generator).resume(()) {
3030
30| 1| GeneratorState::Yielded(1) => {}

0 commit comments

Comments
 (0)