Condition Coverage

blib/lib/Data/Format/Pretty/Console.pm
Criterion Covered Total %
condition 20 43 46.5


and 3 conditions

line !l l&&!r l&&r condition
110 5 3 2 defined $numcols and $numcols != @$row
291 3 0 0 defined $self->{'opts'}{'list_max_columns'} and $numcols > $self->{'opts'}{'list_max_columns'}
463 7 2 1 defined $orders{$a} && defined $orders{$b}

or 2 conditions

line l !l condition
27 23 0 $opts //= {}
35 23 21 $opts //= {}
266 3 0 &List::Util::max(map({length $_;} @rows)) // 0
318 0 0 $row // ''
337 0 0 $data->{$k} // ''

or 3 conditions

line l !l&&r !l&&!r condition
36 0 0 21 $ENV{'INTERACTIVE'} // -t STDOUT
23 0 21 $opts->{'interactive'} //= $ENV{'INTERACTIVE'} // -t STDOUT
39 0 0 0 $opts->{'table_column_orders'} //= $json->decode($ENV{'FORMAT_PRETTY_TABLE_COLUMN_ORDERS'})
42 0 0 0 $opts->{'table_column_formats'} //= $json->decode($ENV{'FORMAT_PRETTY_TABLE_COLUMN_FORMATS'})
45 0 0 0 $opts->{'table_column_types'} //= $json->decode($ENV{'FORMAT_PRETTY_TABLE_COLUMN_TYPES'})
46 0 0 44 $opts->{'list_max_columns'} //= $ENV{'FORMAT_PRETTY_LIST_MAX_COLUMNS'}
56 135 0 12 not ref $data or &blessed($data)
98 25 2 45 not ref $data or &blessed($data)