Branch Coverage

blib/lib/Array/Iterator.pm
Criterion Covered Total %
branch 42 44 95.4


line true false branch
15 1 16 unless @array
19 7 9 if (scalar @array == 1) { }
20 3 4 if (ref $array[0] eq 'ARRAY') { }
4 0 elsif (ref $array[0] eq 'HASH') { }
25 2 2 unless exists $array[0]{'__array__'}
27 1 1 unless ref $array[0]{'__array__'} eq 'ARRAY'
51 2 13 unless defined $length and defined $iteratee
64 1 109 unless UNIVERSAL::isa((caller)[0], 'Array::Iterator')
72 1 41 unless UNIVERSAL::isa((caller)[0], 'Array::Iterator')
81 1 135 unless UNIVERSAL::isa((caller)[0], 'Array::Iterator')
91 0 42 unless UNIVERSAL::isa((caller)[0], 'Array::Iterator')
109 49 8 if (not defined $n) { }
1 7 elsif (not $n) { }
1 6 elsif ($n < 0) { }
115 41 14 $idx < $self->{'_length'} ? :
123 1 36 unless $self->{'_current_index'} < $self->{'_length'}
131 5 15 unless $self->{'_current_index'} < $self->{'_length'}
140 22 9 if (not defined $n) { }
1 8 elsif (not $n) { }
1 7 elsif ($n < 0) { }
146 5 24 unless $idx < $self->{'_length'}
157 54 3 $self->{'_current_index'} != 0 ? :