Branch Coverage

lib/Class/STL/Algorithms.pm
Criterion Covered Total %
branch 4 166 2.4


line true false branch
95 0 0 defined $binary_op ? :
100 0 0 if (ref $iter->p_element and $iter->p_element->isa('Class::STL::Containers::Tree')) { }
106 0 0 defined $binary_op ? :
121 7 0 $have_sort ? :
7 0 $have_sort ? :
126 7 0 $have_sort ? :
137 0 7 if $@
143 0 0 int @_ == 2 ? :
153 0 0 defined $binary_op ? :
158 0 0 @_ == 5 ? :
169 0 0 if (ref $iter->p_element and $iter->p_element->isa('Class::STL::Containers::AbstracTree')) { }
0 0 elsif ($unary_op->isa('Class::STL::Utilities::FunctionObject::UnaryPredicate')) { }
177 0 0 $unary_op->function_operator($iter->p_element) ? :
203 0 0 if (ref $iter->p_element and $iter->p_element->isa('Class::STL::Containers::AbstracTree')) { }
0 0 elsif ($binary_op->isa('Class::STL::Utilities::FunctionObject::BinaryPredicate')) { }
211 0 0 $binary_op->function_operator($iter->p_element, $iter2->p_element) ? :
224 0 0 int @_ == 2 ? :
231 0 0 if (ref $iter->p_element and $iter->p_element->isa('Class::STL::Containers::Tree')) { }
0 0 elsif (defined $binary_op and $binary_op->function_operator($iter_prev->p_element, $iter->p_element) or not defined $binary_op and $iter_prev->p_element->eq($iter->p_element)) { }
255 0 0 int @_ == 3 ? :
264 0 0 if (defined $binary_op and not $binary_op->function_operator($iter_prev->p_element, $iter->p_element) or not defined $binary_op || $iter_prev->p_element->eq($iter->p_element))
277 0 0 int @_ == 2 ? :
284 0 0 if defined $binary_op and $binary_op->function_operator($iter->p_element, $iter_next->p_element) or not defined $binary_op and $iter_next->p_element->eq($iter->p_element)
306 0 0 if ($function->function_operator($iter->p_element))
316 0 0 int @_ == 3 ? :
323 0 0 if defined $binary_op and $binary_op->function_operator($iter->p_element, $iter_min->p_element) or not defined $binary_op and $iter->p_element->lt($iter_min->p_element)
334 0 0 int @_ == 3 ? :
341 0 0 if defined $binary_op and not $binary_op->function_operator($iter->p_element, $iter_min->p_element) or not defined $binary_op || $iter->p_element->lt($iter_min->p_element)
352 0 0 int @_ == 3 ? :
364 0 0 if $iter2->at_end or defined $binary_op and $binary_op->function_operator($iter->p_element, $iter2->p_element) == 0 or not defined $binary_op and $iter->p_element->eq($iter2->p_element) == 0
430 0 0 ref $iter->p_element && $iter->p_element->isa('Class::STL::Containers::Tree') ? :
444 0 0 ref $iter->p_element && $iter->p_element->isa('Class::STL::Containers::Tree') ? :
460 0 0 ref $iter->p_element && $iter->p_element->isa('Class::STL::Containers::Tree') ? :
471 0 0 unless ref $element and $element->isa('Class::STL::Element')
476 0 0 ref $iter->p_element && $iter->p_element->isa('Class::STL::Containers::Tree') ? :
487 0 0 unless ref $element and $element->isa('Class::STL::Element')
494 0 0 ref $iter->p_element && $iter->p_element->isa('Class::STL::Containers::Tree') ? :
508 0 0 if (ref $iter->p_element and $iter->p_element->isa('Class::STL::Containers::Tree')) { }
0 0 elsif ($function->function_operator($iter->p_element)) { }
510 0 0 if (my $i = find_if($iter->p_element->begin, $iter->p_element->end, $function))
527 0 0 unless ref $element and $element->isa('Class::STL::Element')
532 0 0 if (ref $iter->p_element and $iter->p_element->isa('Class::STL::Containers::Tree')) { }
0 0 elsif ($element->eq($iter->p_element)) { }
534 0 0 if (my $i = find($iter->p_element->begin, $iter->p_element->end, $element))
555 0 0 $function->function_operator($iter->p_element) ? :
0 0 ref $iter->p_element && $iter->p_element->isa('Class::STL::Containers::Tree') ? :
567 0 0 unless ref $element and $element->isa('Class::STL::Element')
573 0 0 $element->eq($iter->p_element) ? :
0 0 ref $iter->p_element && $iter->p_element->isa('Class::STL::Containers::Tree') ? :
588 0 0 if (ref $iter->p_element and $iter->p_element->isa('Class::STL::Containers::Tree'))
594 0 0 $function->function_operator($iter->p_element) ? :
605 0 0 unless ref $element and $element->isa('Class::STL::Element')
610 0 0 if (ref $iter->p_element and $iter->p_element->isa('Class::STL::Containers::Tree'))
616 0 0 $element->eq($iter->p_element) ? :
631 0 0 if (ref $iter->p_element and $iter->p_element->isa('Class::STL::Containers::Tree')) { }
0 0 elsif (not $function->function_operator($iter->p_element)) { }
648 0 0 unless ref $element and $element->isa('Class::STL::Element')
653 0 0 if (ref $iter->p_element and $iter->p_element->isa('Class::STL::Containers::Tree')) { }
0 0 elsif (not $element->eq($iter->p_element)) { }
694 0 0 unless ref $new_element and $new_element->isa('Class::STL::Element')
699 0 0 if (ref $iter->p_element and $iter->p_element->isa('Class::STL::Containers::Tree')) { }
0 0 elsif ($function->function_operator($iter->p_element)) { }
721 0 0 unless ref $old_element and $old_element->isa('Class::STL::Element')
723 0 0 unless ref $new_element and $new_element->isa('Class::STL::Element')
728 0 0 if (ref $iter->p_element and $iter->p_element->isa('Class::STL::Containers::Tree')) { }
0 0 elsif ($iter->p_element->eq($old_element)) { }
751 0 0 unless ref $new_element and $new_element->isa('Class::STL::Element')
756 0 0 if (ref $iter->p_element and $iter->p_element->isa('Class::STL::Containers::Tree')) { }
763 0 0 $function->function_operator($iter->p_element) ? :
776 0 0 unless ref $old_element and $old_element->isa('Class::STL::Element')
778 0 0 unless ref $new_element and $new_element->isa('Class::STL::Element')
783 0 0 if (ref $iter->p_element and $iter->p_element->isa('Class::STL::Containers::Tree')) { }
789 0 0 $iter->p_element->eq($old_element) ? :
814 0 0 if $format[$arg] ne 'S' and not ref $_[$arg]
816 0 0 if defined $_[$arg] and $format[$arg] eq 'I' && $_[$arg]->isa('Class::STL::Iterators::Abstract') || $format[$arg] eq 'F' && $_[$arg]->isa('Class::STL::Utilities::FunctionObject') || $format[$arg] eq 'B' && $_[$arg]->isa('Class::STL::Utilities::FunctionObject::BinaryFunction') || $format[$arg] eq 'U' && $_[$arg]->isa('Class::STL::Utilities::FunctionObject::UnaryFunction') || $format[$arg] eq 'G' && $_[$arg]->isa('Class::STL::Utilities::FunctionObject::Generator') || $format[$arg] eq 'E' && $_[$arg]->isa('Class::STL::Element') || $format[$arg] eq 'S' && !ref($_[$arg])
832 0 0 if ($check != int @_)
836 0 0 if /S/
837 0 0 if /I/
838 0 0 if /F/
839 0 0 if /U/
840 0 0 if /G/
841 0 0 if /B/
842 0 0 if /E/