Branch Coverage

blib/lib/Text/Table/Span.pm
Criterion Covered Total %
branch 140 190 73.6


line true false branch
32 15 0 if defined $_[0]
33 14 0 if defined $_[0]
34 12 0 if defined $_[0]
35 9 0 if defined $_[0]
36 0 0 if defined $_[0]
37 14 0 if defined $_[0]
56 7 2 if @$lines >= $num_lines
59 2 0 if ($which =~ /^b/) { }
0 0 elsif ($which =~ /^t/) { }
80 34 4 unless ref $cell_value eq 'HASH'
82 1 3 if defined $attr_val
87 20 17 unless defined $x and defined $y
89 0 17 unless $cell_attrs
91 15 2 unless $entry->[0] == $y and $entry->[1] == $x
93 1 1 if defined $attr_val
99 20 16 unless defined $x
101 0 16 unless $col_attrs
103 10 6 unless $entry->[0] == $x
105 3 3 if defined $attr_val
111 0 33 unless defined $y
113 0 33 unless $row_attrs
115 22 11 unless $entry->[0] == $y
117 2 9 if defined $attr_val
124 2 29 if defined $attr_val
136 2 7 ref $cell eq 'HASH' ? :
139 2 1 $align eq 'right' ? :
6 3 $align eq 'left' ? :
140 0 0 $valign eq 'bottom' ? :
9 0 $valign eq 'top' ? :
145 1 9 if $ic > 1
149 1 9 if $$bottom_borders[$y + $ir - 2] and $ir > 1
162 0 1 unless my $rows = $args{'rows'}
173 1 0 if ($color) { }
181 1 0 if ($color) { }
182 1 0 if ($wide_char) { }
192 0 0 if ($wide_char) { }
233 4 0 if @{$exptable->[$rownum];} == 0 or defined $exptable->[$rownum][-1]
238 0 4 if ($exptable_colnum == -1)
239 4 0 $args{'separate_rows'} ? :
247 2 7 if (ref $cell eq 'HASH') { }
249 1 1 if $cell->{'rowspan'}
250 1 1 if $cell->{'colspan'}
254 1 6 if $_->[0] == $rownum and $_->[1] == $colnum
255 0 7 if $el
256 1 6 if $_->[0] == $rownum and $_->[1] == $colnum
257 0 7 if $el
267 9 3 if ($ir == 1 and $ic == 1) { }
272 2 1 if $ir > 1
273 2 1 if $ic > 1
279 0 10 if $val
280 0 10 if $val
281 3 0 if $rownum + $ir - 1 == 0 and $args{'header_row'}
283 4 6 if $M < $rownum + $ir
290 1 3 if $N < $exptable_colnum
300 3 9 if _exptable_cell_is_tail($exptable_cell)
304 2 7 ref $cell eq 'HASH' ? :
308 1 0 if $$exptable_bottom_borders[$exptable_rownum + $_ - 1]
358 12 0 $exptable->[$_][$ic] ? :
380 3 1 unless $ir == 0
381 1 0 $args{'header_row'} ? :
386 0 0 unless length $b_topleft or length $b_topline or length $b_topbetwcol or length $b_topright
389 2 1 $ic < $N - 1 ? :
392 2 0 $cell_right_has_content ? :
1 2 $ic == $N - 1 ? :
400 1 3 $ir == 0 && $args{'header_row'} ? :
411 9 3 if (_exptable_cell_is_head($cell))
425 4 8 if ($ic == $N - 1)
426 1 3 $ir == 0 && $args{'header_row'} ? :
438 1 3 unless $ir < $M - 1
439 0 3 unless $exptable_bottom_borders->[$ir]
440 1 2 $ir == 0 && $args{'header_row'} ? :
445 0 0 unless length $b_betwrowleft or length $b_betwrowline or length $b_betwrowbetwcol or length $b_betwrowright
450 1 2 $ir == 0 && $args{'header_row'} ? :
456 6 3 $ic < $N - 1 ? :
457 9 0 $ir < $M - 1 ? :
458 6 3 $ir < $M - 1 && $ic < $N - 1 ? :
461 3 6 if ($ic == 0)
462 0 3 _exptable_cell_is_rowspan_tail($cell_bottom) ? :
466 7 2 if (_exptable_cell_is_rowspan_head($cell_bottom))
471 3 6 if ($ic == $N - 1) { }
473 1 2 if (_exptable_cell_is_rowspan_tail($cell_bottom)) { }
480 1 5 if (_exptable_cell_is_colspan_tail($cell_right)) { }
481 1 0 if (_exptable_cell_is_colspan_tail($cell_rightbottom)) { }
482 1 0 if (_exptable_cell_is_rowspan_tail($cell_bottom)) { }
491 1 4 if (_exptable_cell_is_colspan_tail($cell_rightbottom)) { }
494 0 4 if (_exptable_cell_is_rowspan_tail($cell_bottom)) { }
1 3 elsif (_exptable_cell_is_rowspan_tail($cell_rightbottom)) { }
495 0 0 if (_exptable_cell_is_rowspan_tail($cell_rightbottom)) { }
516 3 1 unless $ir == $M - 1
517 0 1 $ir == 0 && $args{'header_row'} ? :
522 0 0 unless length $b_botleft or length $b_botline or length $b_botbetwcol or length $b_botright
525 2 1 $ic < $N - 1 ? :
527 1 1 _exptable_cell_is_colspan_tail($cell_right) ? :
1 2 $ic == $N - 1 ? :
535 37 93 unless defined $_