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
308 3 0 0 $emu_eng eq 'linux' && !defined($ENV{'UTF8'})
402 0 0 0 @{$self->{'_row_separators'};} and $self->{'_row_separators'}[-1] == $idx
1091 3 0 0 defined $setw and $setw < 0
3 0 0 defined $setw and $setw < 0 and $wh->[0] < -$setw
1093 3 0 0 defined $seth and $seth < 0
3 0 0 defined $seth and $seth < 0 and $wh->[1] < -$seth
1096 0 0 0 defined $seth and $seth < 0
0 0 0 defined $seth and $seth < 0 and $h < -$seth
1214 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
1291 1 0 0 defined $fcol_setwidths->[$ci] and $fcol_setwidths->[$ci] > 0
1431 2 2 0 $i < @{$self->{'_draw'}{'frows'};} - 1 && ($self->{'show_row_separator'} == 2 && $i ~~ $self->{'_draw'}{'frow_separators'} || $self->{'show_row_separator'} == 1)
1683 0 0 1 $self->{'show_header'} and length $self->{'border_style_obj'}->get_border_char("char", "rv_l")

or 2 conditions

line l !l condition
263 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) // ""
307 3 0 $self->detect_terminal->{'emulator_engine'} // ""
329 0 0 $bs //= "UTF8::BrickOuterOnly"
345 0 0 $self->detect_terminal->{'default_bgcolor'} // ""
1063 0 0 $subtype // ""
1068 0 1 $ENV{'WRAP'} // 1
1118 0 1 ($self->get_eff_column_style($i, "formats") // $fcol_detect->[$i]{'formats'}) // []
1128 0 0 $res->[$_] // ""
1131 2 0 $frows->[$_][$i] //= ""
1161 2 0 $res->[2][0] // ""
1256 1 0 $self->{'_draw'}{'header_height'} // 0
1261 2 0 $frow_tpads->[$i] // 0
2 0 $frow_heights->[$i] // 0
2 0 $frow_bpads->[$i] // 0
1411 9 6 $n //= 1
1447 3 0 $valign //= "top"
1463 3 0 $align //= "left"
1519 0 1 (($self->{'header_align'} // $self->{'cell_align'}) // $self->{'_draw'}{'fcol_detect'}[$i]{'align'}) // "left"
1524 0 1 (($self->{'header_valign'} // $self->{'cell_valign'}) // $self->{'_draw'}{'fcol_detect'}[$i]{'valign'}) // "top"
1528 0 1 ($self->{'header_tpad'} // $self->{'header_vpad'}) // 0
1529 0 1 ($self->{'header_bpad'} // $self->{'header_vpad'}) // 0
1593 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"
1600 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
807 0 0 0 /\W/ || /\A(new|summary|apply)\z/
841 0 0 0 $self->{'_column_styles'}[$ci]{$k} //= $v
859 0 0 0 $self->{'_row_styles'}[$row]{$k} //= $v
883 0 0 0 $self->{'_cell_styles'}[$row][$ci]{$k} //= $v
923 0 1 0 $self->{'cell_lpad'} // $self->{'cell_pad'}
924 0 1 0 $self->{'cell_rpad'} // $self->{'cell_pad'}
930 0 0 1 $self->get_eff_column_style($i, "width") // $self->{'cell_width'}
933 0 0 1 not defined $header_height or $header_height < $wh->[1]
935 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
937 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
964 0 0 1 $self->{'cell_tpad'} // $self->{'cell_vpad'}
965 0 0 1 $self->{'cell_bpad'} // $self->{'cell_vpad'}
977 0 0 2 $self->get_eff_row_style($i, "height") // $self->{'cell_height'}
980 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
982 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
1083 3 0 0 !defined($setw) || $setw < 0
1086 3 0 0 !defined($seth) || $seth < 0
1118 0 0 1 $self->get_eff_column_style($i, "formats") // $fcol_detect->[$i]{'formats'}
1179 0 0 1 $self->{'cell_tpad'} // $self->{'cell_vpad'}
1180 0 0 1 $self->{'cell_bpad'} // $self->{'cell_vpad'}
1193 2 0 0 not defined $frow_heights->[$i] or $frow_heights->[$i] < $wh->[1]
1214 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'}
1255 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'}
1258 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'}
1294 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'}
1519 0 0 1 $self->{'header_align'} // $self->{'cell_align'}
0 0 1 ($self->{'header_align'} // $self->{'cell_align'}) // $self->{'_draw'}{'fcol_detect'}[$i]{'align'}
1524 0 0 1 $self->{'header_valign'} // $self->{'cell_valign'}
0 0 1 ($self->{'header_valign'} // $self->{'cell_valign'}) // $self->{'_draw'}{'fcol_detect'}[$i]{'valign'}
1528 0 0 1 $self->{'header_tpad'} // $self->{'header_vpad'}
1529 0 0 1 $self->{'header_bpad'} // $self->{'header_vpad'}
1593 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'}
1600 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'}