Branch Coverage

lib/Class/STL/Iterators.pm
Criterion Covered Total %
branch 50 68 73.5


line true false branch
61 352 63 if $func eq 'iterator'
62 0 63 if $func eq 'bidirectional_iterator'
63 1 62 if $func eq 'forward_iterator'
64 6 56 if $func eq 'reverse_iterator'
65 45 11 if $func eq 'distance'
66 2 9 if $func eq 'advance'
67 0 9 if $func eq 'back_insert_iterator'
68 0 9 if $func eq 'front_insert_iterator'
69 3 6 if $func eq 'back_inserter'
70 4 2 if $func eq 'front_inserter'
71 0 2 if $func eq 'insert_iterator'
72 2 0 if $func eq 'inserter'
91 0 2526 $self->arr_idx < 0 || $self->arr_idx >= $self->p_container->size ? :
96 30 5182 if $self->arr_idx >= $self->p_container->size
97 886 4326 if $self->arr_idx < 0
104 239 2491 $self->arr_idx == -1 ? :
110 69 89 if $self->arr_idx == -1
111 4 85 !$self->p_container->size || $self->arr_idx == 0 ? :
120 122 1744 if $self->arr_idx == -1
121 191 1553 !$self->p_container->size || $self->arr_idx + 1 >= $self->p_container->size ? :
130 29 256 !$self->p_container->size ? :
139 1 172 !$self->p_container->size ? :
147 0 4 unless ref $c and $c->isa('Class::STL::Containers::Abstract') and $c->can('push_front')
154 0 3 unless ref $c and $c->isa('Class::STL::Containers::Abstract') and $c->can('push_back')
162 0 2 unless ref $c and $c->isa('Class::STL::Containers::Abstract') and ref $i and $i->isa('Class::STL::Iterators::Abstract')
171 0 45 unless defined $iter_start and ref $iter_start and $iter_start->isa('Class::STL::Iterators::Abstract') and defined $iter_finish and ref $iter_finish and $iter_finish->isa('Class::STL::Iterators::Abstract') and $iter_start->p_container == $iter_finish->p_container
177 0 45 if $iter_start->at_end and $iter_finish->at_end
178 0 45 if $iter_start->at_end or $iter_start->gt($iter_finish)
179 0 45 if $iter_finish->at_end
186 18 85 if ($size >= 0) { }
214 4 95 $self->eq(shift()) ? :
252 0 0 $self->lt($other) ? :
0 0 $self->eq($other) ? :
336 0 5 if (not $self->p_container->size or $self->at_end) { }