Branch Coverage

lib/Template/Plugin/Table.pm
Criterion Covered Total %
branch 31 46 67.3


line true false branch
49 0 16 if (blessed $data and $data->isa('Template::Iterator'))
51 0 0 if $error
56 0 16 unless ref $data eq 'ARRAY'
60 0 16 unless ref $params eq 'HASH'
70 14 2 if ($rows = $$params{'ROWS'}) { }
2 0 elsif ($cols = $$params{'COLS'}) { }
71 1 13 if ($size < $rows) { }
78 6 7 $size % $coloff > $overlap ? :
84 1 1 if ($size < $cols) { }
90 1 0 $size % $cols > $overlap ? :
108 4 12 defined $$params{'PAD'} ? :
128 0 10 unless defined $row
131 0 10 if $row >= $$self{'_NROWS'} or $row < 0
136 1 0 $pad ? :
34 1 $index < $size ? :
160 2 32 unless defined $col
163 0 32 if $col >= $$self{'_NCOLS'} or $col < 0
167 1 31 if $end < $start
168 6 26 if ($end >= $size)
172 1 31 if $start >= $size
174 11 20 $$self{'_PAD'} ? :
212 0 0 if $item eq 'DESTROY'
214 0 0 if ($item =~ /^(?:data|size|nrows|ncols|overlap|pad)$/) { }