Branch Coverage

lib/Template/Iterator.pm
Criterion Covered Total %
branch 32 34 94.1


line true false branch
55 3 176 if (ref $data eq 'HASH') { }
2 174 elsif (blessed $data and $data->can('as_list')) { }
4 170 elsif (ref $data ne 'ARRAY') { }
97 5 176 unless $size
100 164 12 $size > 1 ? :
123 0 604 unless (defined $index)
130 442 162 if ($index < $max) { }
133 153 289 $index == $max ? :
160 3 5 unless (defined $index)
167 1 2 if ($status and $status == 3)
174 1 1 unless ($index < $max)
180 3 3 if ($index < $max) { }
196 5 5 (shift())->{'COUNT'} % 2 ? :
200 5 5 (shift())->{'COUNT'} % 2 ? :
204 5 5 (shift())->{'COUNT'} % 2 ? :
218 0 122 if $item eq 'DESTROY'
221 8 114 if $item =~ /NUMBER/i