File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
library/test/src/formatters Expand file tree Collapse file tree 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> {
2222 /// Number of columns to fill when aligning names
2323 max_name_len : usize ,
2424
25- test_count : usize ,
25+ test_column : usize ,
2626 total_test_count : usize ,
2727}
2828
@@ -38,7 +38,7 @@ impl<T: Write> TerseFormatter<T> {
3838 use_color,
3939 max_name_len,
4040 is_multithreaded,
41- test_count : 0 ,
41+ test_column : 0 ,
4242 total_test_count : 0 , // initialized later, when write_run_start is called
4343 }
4444 }
@@ -65,15 +65,15 @@ impl<T: Write> TerseFormatter<T> {
6565 color : term:: color:: Color ,
6666 ) -> io:: Result < ( ) > {
6767 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 {
6969 // We insert a new line regularly in order to flush the
7070 // screen when dealing with line-buffered output (e.g., piping to
7171 // `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) ;
7373 self . write_plain ( out) ?;
7474 }
7575
76- self . test_count += 1 ;
76+ self . test_column += 1 ;
7777 Ok ( ( ) )
7878 }
7979
You can’t perform that action at this time.
0 commit comments