Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Reorder code slightly for clarity
  • Loading branch information
Geoffrey Broadwell committed Nov 1, 2014
1 parent 83fb590 commit a9ba519
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions analyze
Expand Up @@ -453,16 +453,16 @@ sub summarize_results_text {
$output .= sprintf "$format\n", 'TEST', @{$s->{vm_names}};
$output .= ' ' x $longest_test . $spacer . '-' x length($titles) . "\n";

my $row_height = grep $_, @$opt{qw( show-rates show-failures compare )};
my $double_space = !$style && $row_height > 1;

my %test_name_shown;
my $show_test_name = sub {
my $test = shift;
my $name = $test_name_shown{$test->{name}}++ ? '' : $test->{name};
$output .= sprintf "%-${longest_test}s", $name;
};

my $row_height = grep $_, @$opt{qw( show-rates show-failures compare )};
my $double_space = !$style && $row_height > 1;

my $icon_set = sub {
my @icons = map { $DIAGNOSIS_ICON{$_}
// $DIAGNOSIS_ICON{unknown} } @_;
Expand Down

0 comments on commit a9ba519

Please sign in to comment.