Branch Coverage

lib/Class/STL/Containers.pm
Criterion Covered Total %
branch 56 94 59.5


line true false branch
46 6 35 if $func eq 'vector'
47 33 2 if $func eq 'list'
48 2 0 if $func eq 'deque'
49 0 0 if $func eq 'queue'
50 0 0 if $func eq 'priority_queue'
51 0 0 if $func eq 'stack'
52 0 0 if $func eq 'tree'
84 5 244 if (not ref $p and int @_ and exists do { $self->members }->{$p} || $self->can($p)) { }
6 238 elsif (ref $p and $p->isa('Class::STL::Iterators::Abstract')) { }
0 238 elsif (ref $p and $p->isa('Class::STL::Containers::Abstract')) { }
0 238 elsif (ref $p and $p->isa('Class::STL::Element')) { }
104 0 52 unless UNIVERSAL::isa($self->element_type, 'Class::STL::Element')
110 4 48 if (@copy_iterators)
111 2 2 @copy_iterators >= 2 ? :
127 267 3 if $self->element_type eq 'Class::STL::Element'
129 1 2 unless (exists $__factfun{$self->element_type})
143 0 1 if $@
180 0 229 unless defined $position and ref $position and $position->isa('Class::STL::Iterators::Abstract')
186 3 226 if (defined $_[0] and ref $_[0] and $_[0]->isa('Class::STL::Iterators::Abstract') and defined $_[1] and ref $_[1] and $_[1]->isa('Class::STL::Iterators::Abstract')) { }
2 224 elsif (defined $_[0] and ref $_[0] and $_[0]->isa('Class::STL::Iterators::Abstract')) { }
87 137 elsif (defined $_[0] and ref $_[0] and $_[0]->isa('Class::STL::Element')) { }
137 0 elsif (defined $_[0] and defined $_[1] and ref $_[1] and $_[1]->isa('Class::STL::Element')) { }
191 1 2 $self->size ? :
196 0 8 $position->can('assign') ? :
205 0 5 if ($position->can('assign')) { }
5 0 elsif (not $size or $position->at_end) { }
224 8 79 if $position->can('assign')
227 66 13 !$size || $position->at_end ? :
229 14 65 unless $size
240 33 104 if $position->can('assign')
243 81 23 !$size || $position->at_end ? :
249 15 94 unless $size
259 39 0 if ($count = distance($iter_start, $iter_finish) + 1) > 0
261 1 38 if $iter_start->at_end
295 13200 0 defined $self->data ? :
300 0 0 $self->size ? :
307 95 0 unless defined $level
312 0 0 $_->isa('Class::STL::Containers::Abstract') ? :
328 0 48 unless $self->size == $other->size
331 1 529 unless $i1->p_element->eq($i2->p_element)
338 1 1 $self->eq(shift()) ? :
519 0 0 $self->lt($other) ? :
0 0 $self->eq($other) ? :
577 0 0 if (not $self->size or $d->ge($self->top))
584 0 0 if ($i->p_element->gt($d))
646 0 0 unless UNIVERSAL::isa($package, 'Class::STL::Containers::Abstract')
675 0 0 if $@