Branch Coverage

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


line true false branch
89 2 27 unless @array
93 10 17 if (scalar @array == 1) { }
94 4 6 if (ref $array[0] eq 'ARRAY') { }
6 0 elsif (ref $array[0] eq 'HASH') { }
98 2 4 unless exists $array[0]{'__array__'}
100 1 3 unless ref $array[0]{'__array__'} eq "ARRAY"
120 2 24 unless defined $length and defined $iteratee
139 1 162 unless UNIVERSAL::isa((&CORE::GLOBAL::caller())[0], __PACKAGE__)
152 1 59 unless UNIVERSAL::isa((&CORE::GLOBAL::caller())[0], __PACKAGE__)
161 1 186 unless UNIVERSAL::isa((&CORE::GLOBAL::caller())[0], __PACKAGE__)
179 0 59 unless UNIVERSAL::isa((&CORE::GLOBAL::caller())[0], __PACKAGE__)
216 75 8 if (not defined $n) { }
1 7 elsif (not $n) { }
1 6 elsif ($n < 0) { }
226 61 20 $idx < $self->{'_length'} ? :
249 1 59 unless $self->{'_current_index'} < $self->{'_length'}
281 6 18 unless $self->{'_current_index'} < $self->{'_length'}
319 22 13 if (not defined $n) { }
1 12 elsif (not $n) { }
1 11 elsif ($n < 0) { }
325 7 26 unless $idx < $self->{'_length'}
352 63 5 $self->{'_current_index'} != 0 ? :