Branch Coverage

blib/lib/Template/Alloy/Iterator.pm
Criterion Covered Total %
branch 17 24 70.8


line true false branch
14 0 267 unless defined $items
15 0 267 if (ref $items eq 'HASH') { }
0 267 elsif (UNIVERSAL::can($items, 'as_list')) { }
38 229 elsif (ref $items ne 'ARRAY') { }
27 2 265 unless @{$$self[0];}
33 240 443 if ++$$self[1] > $#{$$self[0];}
49 30 37 unless (shift())->index == 0
53 9 6 (shift())->count % 2 ? :
55 9 6 (shift())->count % 2 ? :
57 9 6 (shift())->count % 2 ? :
61 0 0 if $self->index <= 0
67 0 0 if $self->index >= $self->max