Condition Coverage

blib/lib/Text/ANSITable.pm
Criterion Covered Total %
condition 75 234 32.0


and 3 conditions

line !l l&&!r l&&r condition
248 2 0 0 $emu_eng eq 'linux' && !defined($ENV{'UTF8'})
340 0 0 0 @{$self->{'_row_separators'};} and $self->{'_row_separators'}[-1] == $idx
1029 3 0 0 defined $setw and $setw < 0
3 0 0 defined $setw and $setw < 0 and $wh->[0] < -$setw
1031 3 0 0 defined $seth and $seth < 0
3 0 0 defined $seth and $seth < 0 and $wh->[1] < -$seth
1034 0 0 0 defined $seth and $seth < 0
0 0 0 defined $seth and $seth < 0 and $h < -$seth
1152 0 1 0 ($self->get_eff_column_style($i, 'wrap') // $self->{'column_wrap'}) // $fcol_detect->[$i]{'wrap'} and defined $fcol_setwidths->[$i]
1 0 0 ($self->get_eff_column_style($i, 'wrap') // $self->{'column_wrap'}) // $fcol_detect->[$i]{'wrap'} and defined $fcol_setwidths->[$i] and $fcol_setwidths->[$i] > 0
1229 1 0 0 defined $fcol_setwidths->[$ci] and $fcol_setwidths->[$ci] > 0
1369 2 2 0 $i < @{$self->{'_draw'}{'frows'};} - 1 && ($self->{'show_row_separator'} == 2 && $i ~~ $self->{'_draw'}{'frow_separators'} || $self->{'show_row_separator'} == 1)
1621 0 0 1 $self->{'show_header'} and length $self->{'border_style_obj'}->get_border_char(2, 0)

or 2 conditions

line l !l condition
203 0 8 $self->{'color_theme_obj'}->get_item_color($item, $args) // undef
0 8 item_color_to_ansi($self->{'color_theme_obj'}->get_item_color($item, $args) // undef, $is_bg) // ''
247 2 0 $self->detect_terminal->{'emulator_engine'} // ''
267 0 0 $bs //= 'UTF8::BrickOuterOnly'
283 0 0 $self->detect_terminal->{'default_bgcolor'} // ''
1001 0 0 $subtype // ''
1006 0 1 $ENV{'WRAP'} // 1
1056 0 1 ($self->get_eff_column_style($i, 'formats') // $fcol_detect->[$i]{'formats'}) // []
1066 0 0 $res->[$_] // ''
1069 2 0 $frows->[$_][$i] //= ''
1099 2 0 $res->[2][0] // ''
1194 1 0 $self->{'_draw'}{'header_height'} // 0
1199 2 0 $frow_tpads->[$i] // 0
2 0 $frow_heights->[$i] // 0
2 0 $frow_bpads->[$i] // 0
1349 9 6 $n //= 1
1385 3 0 $valign //= 'top'
1401 3 0 $align //= 'left'
1457 0 1 (($self->{'header_align'} // $self->{'cell_align'}) // $self->{'_draw'}{'fcol_detect'}[$i]{'align'}) // 'left'
1462 0 1 (($self->{'header_valign'} // $self->{'cell_valign'}) // $self->{'_draw'}{'fcol_detect'}[$i]{'valign'}) // 'top'
1466 0 1 ($self->{'header_tpad'} // $self->{'header_vpad'}) // 0
1467 0 1 ($self->{'header_bpad'} // $self->{'header_vpad'}) // 0
1531 0 2 (((($self->get_eff_cell_style($oy, $x, 'align') // $self->get_eff_row_style($oy, 'align')) // $self->get_eff_column_style($x, 'align')) // $self->{'cell_align'}) // $self->{'_draw'}{'fcol_detect'}[$x]{'align'}) // 'left'
1538 0 2 (((($self->get_eff_cell_style($oy, $x, 'valign') // $self->get_eff_row_style($oy, 'valign')) // $self->get_eff_column_style($x, 'valign')) // $self->{'cell_valign'}) // $self->{'_draw'}{'fcol_detect'}[$x]{'valign'}) // 'top'

or 3 conditions

line l !l&&r !l&&!r condition
745 0 0 0 /\W/ || /\A(new|summary|apply)\z/
779 0 0 0 $self->{'_column_styles'}[$ci]{$k} //= $v
797 0 0 0 $self->{'_row_styles'}[$row]{$k} //= $v
821 0 0 0 $self->{'_cell_styles'}[$row][$ci]{$k} //= $v
861 0 1 0 $self->{'cell_lpad'} // $self->{'cell_pad'}
862 0 1 0 $self->{'cell_rpad'} // $self->{'cell_pad'}
868 0 0 1 $self->get_eff_column_style($i, 'width') // $self->{'cell_width'}
871 0 0 1 not defined $header_height or $header_height < $wh->[1]
873 0 0 1 $self->get_eff_column_style($i, 'lpad') // $self->get_eff_column_style($i, 'pad')
0 1 0 ($self->get_eff_column_style($i, 'lpad') // $self->get_eff_column_style($i, 'pad')) // $lpad
875 0 0 1 $self->get_eff_column_style($i, 'rpad') // $self->get_eff_column_style($i, 'pad')
0 1 0 ($self->get_eff_column_style($i, 'rpad') // $self->get_eff_column_style($i, 'pad')) // $rpad
902 0 0 1 $self->{'cell_tpad'} // $self->{'cell_vpad'}
903 0 0 1 $self->{'cell_bpad'} // $self->{'cell_vpad'}
915 0 0 2 $self->get_eff_row_style($i, 'height') // $self->{'cell_height'}
918 0 0 2 $self->get_eff_row_style($i, 'tpad') // $self->get_eff_row_style($i, 'vpad')
0 0 2 ($self->get_eff_row_style($i, 'tpad') // $self->get_eff_row_style($i, 'vpad')) // $tpad
920 0 0 2 $self->get_eff_row_style($i, 'bpad') // $self->get_eff_row_style($i, 'vpad')
0 0 2 ($self->get_eff_row_style($i, 'bpad') // $self->get_eff_row_style($i, 'vpad')) // $bpad
1021 3 0 0 !defined($setw) || $setw < 0
1024 3 0 0 !defined($seth) || $seth < 0
1056 0 0 1 $self->get_eff_column_style($i, 'formats') // $fcol_detect->[$i]{'formats'}
1117 0 0 1 $self->{'cell_tpad'} // $self->{'cell_vpad'}
1118 0 0 1 $self->{'cell_bpad'} // $self->{'cell_vpad'}
1131 2 0 0 not defined $frow_heights->[$i] or $frow_heights->[$i] < $wh->[1]
1152 0 0 1 $self->get_eff_column_style($i, 'wrap') // $self->{'column_wrap'}
0 1 0 ($self->get_eff_column_style($i, 'wrap') // $self->{'column_wrap'}) // $fcol_detect->[$i]{'wrap'}
1193 0 0 1 $self->{'header_tpad'} // $self->{'header_vpad'}
0 0 1 ($self->{'header_tpad'} // $self->{'header_vpad'}) // $self->{'cell_tpad'}
0 0 1 (($self->{'header_tpad'} // $self->{'header_vpad'}) // $self->{'cell_tpad'}) // $self->{'cell_vpad'}
1196 0 0 1 $self->{'header_bpad'} // $self->{'header_vpad'}
0 0 1 ($self->{'header_bpad'} // $self->{'header_vpad'}) // $self->{'cell_bpad'}
0 0 1 (($self->{'header_bpad'} // $self->{'header_vpad'}) // $self->{'cell_bpad'}) // $self->{'cell_vpad'}
1232 0 0 0 $self->get_eff_column_style($ci, 'wrap') // $self->{'column_wrap'}
0 0 0 ($self->get_eff_column_style($ci, 'wrap') // $self->{'column_wrap'}) // $fcol_detect->[$ci]{'wrap'}
1457 0 0 1 $self->{'header_align'} // $self->{'cell_align'}
0 0 1 ($self->{'header_align'} // $self->{'cell_align'}) // $self->{'_draw'}{'fcol_detect'}[$i]{'align'}
1462 0 0 1 $self->{'header_valign'} // $self->{'cell_valign'}
0 0 1 ($self->{'header_valign'} // $self->{'cell_valign'}) // $self->{'_draw'}{'fcol_detect'}[$i]{'valign'}
1466 0 0 1 $self->{'header_tpad'} // $self->{'header_vpad'}
1467 0 0 1 $self->{'header_bpad'} // $self->{'header_vpad'}
1531 0 0 2 $self->get_eff_cell_style($oy, $x, 'align') // $self->get_eff_row_style($oy, 'align')
0 0 2 ($self->get_eff_cell_style($oy, $x, 'align') // $self->get_eff_row_style($oy, 'align')) // $self->get_eff_column_style($x, 'align')
0 0 2 (($self->get_eff_cell_style($oy, $x, 'align') // $self->get_eff_row_style($oy, 'align')) // $self->get_eff_column_style($x, 'align')) // $self->{'cell_align'}
0 0 2 ((($self->get_eff_cell_style($oy, $x, 'align') // $self->get_eff_row_style($oy, 'align')) // $self->get_eff_column_style($x, 'align')) // $self->{'cell_align'}) // $self->{'_draw'}{'fcol_detect'}[$x]{'align'}
1538 0 0 2 $self->get_eff_cell_style($oy, $x, 'valign') // $self->get_eff_row_style($oy, 'valign')
0 0 2 ($self->get_eff_cell_style($oy, $x, 'valign') // $self->get_eff_row_style($oy, 'valign')) // $self->get_eff_column_style($x, 'valign')
0 0 2 (($self->get_eff_cell_style($oy, $x, 'valign') // $self->get_eff_row_style($oy, 'valign')) // $self->get_eff_column_style($x, 'valign')) // $self->{'cell_valign'}
0 0 2 ((($self->get_eff_cell_style($oy, $x, 'valign') // $self->get_eff_row_style($oy, 'valign')) // $self->get_eff_column_style($x, 'valign')) // $self->{'cell_valign'}) // $self->{'_draw'}{'fcol_detect'}[$x]{'valign'}