Branch Coverage

blib/lib/Text/Table/More.pm
Criterion Covered Total %
branch 168 196 85.7


line true false branch
91 135 0 if defined $_[0]
92 129 0 if defined $_[0]
93 149 0 if defined $_[0]
94 82 0 if defined $_[0]
95 0 0 if defined $_[0]
96 176 0 if defined $_[0]
115 110 15 if @$lines >= $num_lines
118 12 3 if ($which =~ /^b/) { }
1 2 elsif ($which =~ /^t/) { }
139 1196 216 unless ref $cell_value eq "HASH"
141 7 209 if defined $attr_val
146 206 1199 unless defined $x and defined $y
148 944 255 unless $cell_attrs
150 223 32 unless $entry->[0] == $y and $entry->[1] == $x
152 3 29 if defined $attr_val
158 206 1196 unless defined $x
160 944 252 unless $col_attrs
162 180 72 unless $entry->[0] == $x
164 9 63 if defined $attr_val
170 0 1393 unless defined $y
172 1020 373 unless $row_attrs
174 245 128 unless $entry->[0] == $y
176 9 119 if defined $attr_val
183 281 1103 if defined $attr_val
198 4 2 $align eq 'right' ? :
119 6 $align eq 'left' ? :
199 3 2 $valign eq 'bottom' ? :
120 5 $valign eq 'top' ? :
205 9 125 if $ic > 1
209 10 125 if $$bottom_borders[$y + $ir - 2] and $ir > 1
227 0 22 unless my $rows = $args{'rows'}
241 1 21 if ($color) { }
249 1 21 if ($color) { }
250 1 0 if ($wide_char) { }
260 0 21 if ($wide_char) { }
304 1 47 $cmp == 1 ? :
13 48 $cmp == 0 ? :
308 61 0 if @{$exptable->[$rownum];} == 0 or defined $exptable->[$rownum][-1]
313 0 61 if ($exptable_colnum == -1)
314 35 26 $args{'separate_rows'} ? :
322 21 104 if (ref $cell eq 'HASH') { }
324 10 11 if $cell->{'rowspan'}
325 9 12 if $cell->{'colspan'}
329 3 18 if $_->[0] == $rownum and $_->[1] == $colnum
330 0 104 if $el
331 3 18 if $_->[0] == $rownum and $_->[1] == $colnum
332 0 104 if $el
346 125 24 if ($ir == 1 and $ic == 1) { }
351 15 9 if $ir > 1
352 14 10 if $ic > 1
358 32 103 if ($rownum + $ir - 1 == 0 and $header_row > 0) { }
362 2 101 if $val
363 0 103 if $val
364 2 101 if $val
365 0 103 if $val
368 61 74 if $M < $rownum + $ir
375 21 40 if $N < $exptable_colnum
385 24 125 if _exptable_cell_is_tail($exptable_cell)
389 21 104 ref $cell eq 'HASH' ? :
399 117 8 if ($lpad > 0)
400 116 9 if ($rpad > 0)
401 9 116 if ($tpad > 0)
402 9 116 if ($bpad > 0)
409 10 0 if $$exptable_bottom_borders[$exptable_rownum + $_ - 1]
461 149 0 $exptable->[$_][$ic] ? :
481 14 47 $header_row >= $ir + 1 ? :
488 40 21 unless $ir == 0
493 0 0 unless length $b_topleft or length $b_topline or length $b_topbetwcol or length $b_topright
496 27 21 $ic < $N - 1 ? :
499 25 2 $cell_right_has_content ? :
21 27 $ic == $N - 1 ? :
516 125 24 if (_exptable_cell_is_head($cell))
530 61 88 if ($ic == $N - 1)
540 13 48 if $header_row == $ir + 1
543 21 40 unless $ir < $M - 1
544 9 31 unless $exptable_bottom_borders->[$ir]
550 0 0 unless length $b_betwrowleft or length $b_betwrowline or length $b_betwrowbetwcol or length $b_betwrowright
559 51 31 $ic < $N - 1 ? :
560 82 0 $ir < $M - 1 ? :
561 51 31 $ir < $M - 1 && $ic < $N - 1 ? :
564 31 51 if ($ic == 0)
565 4 27 _exptable_cell_is_rowspan_tail($cell_bottom) ? :
569 67 15 if (_exptable_cell_is_rowspan_head($cell_bottom))
574 31 51 if ($ic == $N - 1) { }
576 6 25 if (_exptable_cell_is_rowspan_tail($cell_bottom)) { }
583 10 41 if (_exptable_cell_is_colspan_tail($cell_right)) { }
584 5 5 if (_exptable_cell_is_colspan_tail($cell_rightbottom)) { }
585 5 0 if (_exptable_cell_is_rowspan_tail($cell_bottom)) { }
594 7 34 if (_exptable_cell_is_colspan_tail($cell_rightbottom)) { }
597 4 30 if (_exptable_cell_is_rowspan_tail($cell_bottom)) { }
6 24 elsif (_exptable_cell_is_rowspan_tail($cell_rightbottom)) { }
598 0 4 if (_exptable_cell_is_rowspan_tail($cell_rightbottom)) { }
620 40 21 unless $ir == $M - 1
625 0 0 unless length $b_botleft or length $b_botline or length $b_botbetwcol or length $b_botright
628 27 21 $ic < $N - 1 ? :
630 4 23 _exptable_cell_is_colspan_tail($cell_right) ? :
21 27 $ic == $N - 1 ? :
638 405 1267 unless defined $_