File tree 1 file changed +5
-5
lines changed
library/test/src/formatters
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ pub(crate) struct TerseFormatter<T> {
22
22
/// Number of columns to fill when aligning names
23
23
max_name_len : usize ,
24
24
25
- test_count : usize ,
25
+ test_column : usize ,
26
26
total_test_count : usize ,
27
27
}
28
28
@@ -38,7 +38,7 @@ impl<T: Write> TerseFormatter<T> {
38
38
use_color,
39
39
max_name_len,
40
40
is_multithreaded,
41
- test_count : 0 ,
41
+ test_column : 0 ,
42
42
total_test_count : 0 , // initialized later, when write_run_start is called
43
43
}
44
44
}
@@ -65,15 +65,15 @@ impl<T: Write> TerseFormatter<T> {
65
65
color : term:: color:: Color ,
66
66
) -> io:: Result < ( ) > {
67
67
self . write_pretty ( result, color) ?;
68
- if self . test_count % QUIET_MODE_MAX_COLUMN == QUIET_MODE_MAX_COLUMN - 1 {
68
+ if self . test_column % QUIET_MODE_MAX_COLUMN == QUIET_MODE_MAX_COLUMN - 1 {
69
69
// We insert a new line regularly in order to flush the
70
70
// screen when dealing with line-buffered output (e.g., piping to
71
71
// `stamp` in the rust CI).
72
- let out = format ! ( " {}/{}\n " , self . test_count + 1 , self . total_test_count) ;
72
+ let out = format ! ( " {}/{}\n " , self . test_column + 1 , self . total_test_count) ;
73
73
self . write_plain ( out) ?;
74
74
}
75
75
76
- self . test_count += 1 ;
76
+ self . test_column += 1 ;
77
77
Ok ( ( ) )
78
78
}
79
79
You can’t perform that action at this time.
0 commit comments