Branch Coverage

blib/lib/Array/Ordered.pm
Criterion Covered Total %
branch 47 68 69.1


line true false branch
205 0 165 blessed($_[0]) ? :
165 0 defined $_[0] ? :
165 0 defined $_[1] ? :
212 0 165 unless ($valid[0] and $valid[1])
214 0 0 unless defined $_[0]
217 0 0 if not $valid[$i] and defined $_[$i]
225 0 165 unless defined $cmpsub
228 165 0 unless blessed $self
230 154 11 unless (exists $CMPSUBS{$self} and $CMPSUBS{$self} == $cmpsub)
315 111 246 unless (defined $found)
317 37 37 ref $constr eq 'CODE' ? :
74 37 defined $constr ? :
348 7 68 unless &{$cmpsub;}($$self[$i - 1], $$self[$i]) < 0
380 7 7 $preserve_first ? :
385 60 164 if ($cmp < 0) { }
164 0 elsif ($cmp == 0) { }
396 0 0 if ($index < 0 or &{$cmpsub;}($$self[$index], $item) < 0) { }
401 0 0 unless $preserve_first
427 111 283 unless $equal
431 37 357 wantarray ? :
451 0 37 unless $equal
455 37 0 wantarray ? :
562 74 0 $equal ? :
582 10 73 if &{$cmpsub;}($$self[$i - 1], $$self[$i]) > 0
606 252 1564 if (&{$cmpsub;}($$self[$i], $$self[$i - 1]) < 0)
633 74 0 $equal ? :
694 74 0 $equal ? :
756 908 125 defined $found ? :
768 90 259 if ($index < $size / 2) { }
782 238 142 $equal ? :
790 999 0 unless defined $min
796 960 546 if (&{$cmpsub;}($match, $$self[$mid]) > 0) { }
813 753 252 unless defined $max
818 1167 796 if (&{$cmpsub;}($match, $$self[$mid]) < 0) { }