Branch Coverage

blib/lib/Text/Table/Span.pm
Criterion Covered Total %
branch 124 172 72.0


line true false branch
29 15 0 if defined $_[0]
30 14 0 if defined $_[0]
31 12 0 if defined $_[0]
32 9 0 if defined $_[0]
33 0 0 if defined $_[0]
34 14 0 if defined $_[0]
55 27 2 unless ref $cell_value eq 'HASH'
57 1 1 if defined $attr_val
62 20 8 unless defined $x and defined $y
64 8 0 unless $cell_attrs
66 0 0 unless $entry->[0] == $y and $entry->[1] == $x
68 0 0 if defined $attr_val
74 20 8 unless defined $x
76 0 8 unless $col_attrs
78 5 3 unless $entry->[0] == $x
80 3 0 if defined $attr_val
86 0 25 unless defined $y
88 0 25 unless $row_attrs
90 17 8 unless $entry->[0] == $y
92 2 6 if defined $attr_val
99 3 20 if defined $attr_val
111 2 7 ref $cell eq 'HASH' ? :
113 3 1 $align eq 'right' ? :
5 4 $align eq 'left' ? :
118 1 9 if $ic > 1
122 1 9 if $$bottom_borders[$y + $ir - 2] and $ir > 1
141 0 1 unless my $rows = $args{'rows'}
175 4 0 if @{$exptable->[$rownum];} == 0 or defined $exptable->[$rownum][-1]
180 0 4 if ($exptable_colnum == -1)
181 4 0 $args{'separate_rows'} ? :
189 2 7 if (ref $cell eq 'HASH') { }
191 1 1 if $cell->{'rowspan'}
192 1 1 if $cell->{'colspan'}
196 0 0 if $_->[0] == $rownum and $_->[1] == $colnum
197 0 7 if $el
198 0 0 if $_->[0] == $rownum and $_->[1] == $colnum
199 0 7 if $el
209 9 3 if ($ir == 1 and $ic == 1) { }
214 2 1 if $ir > 1
215 2 1 if $ic > 1
221 0 10 if $val
222 0 10 if $val
223 3 0 if $rownum + $ir - 1 == 0 and $args{'header_row'}
225 4 6 if $M < $rownum + $ir
232 1 3 if $N < $exptable_colnum
242 3 9 if _exptable_cell_is_tail($exptable_cell)
246 2 7 ref $cell eq 'HASH' ? :
250 1 0 if $$exptable_bottom_borders[$exptable_rownum + $_ - 1]
300 12 0 $exptable->[$_][$ic] ? :
322 3 1 unless $ir == 0
323 1 0 $args{'header_row'} ? :
328 0 0 unless length $b_topleft or length $b_topline or length $b_topbetwcol or length $b_topright
331 2 1 $ic < $N - 1 ? :
334 2 0 $cell_right_has_content ? :
1 2 $ic == $N - 1 ? :
342 1 3 $ir == 0 && $args{'header_row'} ? :
353 9 3 if (_exptable_cell_is_head($cell))
367 4 8 if ($ic == $N - 1)
368 1 3 $ir == 0 && $args{'header_row'} ? :
380 1 3 unless $ir < $M - 1
381 0 3 unless $exptable_bottom_borders->[$ir]
382 1 2 $ir == 0 && $args{'header_row'} ? :
387 0 0 unless length $b_betwrowleft or length $b_betwrowline or length $b_betwrowbetwcol or length $b_betwrowright
392 1 2 $ir == 0 && $args{'header_row'} ? :
398 6 3 $ic < $N - 1 ? :
399 9 0 $ir < $M - 1 ? :
400 6 3 $ir < $M - 1 && $ic < $N - 1 ? :
403 3 6 if ($ic == 0)
404 0 3 _exptable_cell_is_rowspan_tail($cell_bottom) ? :
408 7 2 if (_exptable_cell_is_rowspan_head($cell_bottom))
413 3 6 if ($ic == $N - 1) { }
415 1 2 if (_exptable_cell_is_rowspan_tail($cell_bottom)) { }
422 1 5 if (_exptable_cell_is_colspan_tail($cell_right)) { }
423 1 0 if (_exptable_cell_is_colspan_tail($cell_rightbottom)) { }
424 1 0 if (_exptable_cell_is_rowspan_tail($cell_bottom)) { }
433 1 4 if (_exptable_cell_is_colspan_tail($cell_rightbottom)) { }
436 0 4 if (_exptable_cell_is_rowspan_tail($cell_bottom)) { }
1 3 elsif (_exptable_cell_is_rowspan_tail($cell_rightbottom)) { }
437 0 0 if (_exptable_cell_is_rowspan_tail($cell_rightbottom)) { }
458 3 1 unless $ir == $M - 1
459 0 1 $ir == 0 && $args{'header_row'} ? :
464 0 0 unless length $b_botleft or length $b_botline or length $b_botbetwcol or length $b_botright
467 2 1 $ic < $N - 1 ? :
469 1 1 _exptable_cell_is_colspan_tail($cell_right) ? :
1 2 $ic == $N - 1 ? :
477 37 93 unless defined $_