Branch Coverage

blib/lib/Data/Pairs.pm
Criterion Covered Total %
branch 81 94 86.1


line true false branch
159 1 18 unless $aref
161 6 12 unless pairs_is_valid($aref)
167 2 16 unless ($aref and ref $aref and reftype $aref eq 'ARRAY')
172 3 45 unless (ref $href eq 'HASH')
177 1 44 if (@keys > 1)
242 12 26 unless defined $spec
244 3 23 if (ref $spec eq 'CODE') { }
255 4 16 looks_like_number($_[0]) && looks_like_number($_[1]) ? :
258 8 22 looks_like_number($_[0]) && looks_like_number($_[1]) ? :
261 0 23 unless defined $order
300 0 78 unless defined $key
312 6 72 if (defined $pos)
313 2 4 if $pos > $#$self + 1
319 4 68 if (defined $found) { }
364 0 33 unless @$self
367 25 8 if (@keys) { }
371 78 104 if ($key eq $_)
414 0 32 unless defined $key
417 8 24 if (defined $pos) { }
418 2 6 if $pos > $#$self + 1
448 4 88 unless ($order)
451 70 18 if (@$self)
453 22 48 unless (&$order($key, $key2))
462 48 14 if (&$order($key, $key2))
500 0 92 unless $wantkey
501 16 76 unless @$self
505 28 202 if ($key eq $wantkey)
509 54 22 unless @ret
510 4 18 if wantarray
511 14 4 if @ret == 1
541 0 12 unless @$self
543 8 4 if (@keys) { }
547 24 32 if ($key eq $_)
560 6 6 if wantarray
590 0 14 unless @$self
592 6 8 if (@keys) { }
596 22 30 if ($key eq $_)
642 0 14 unless @$self
644 6 8 if (@keys) { }
648 12 22 if ($key eq $_)
661 8 6 wantarray ? :
677 0 5 unless @$self
701 0 5 unless defined $key
702 0 5 unless @$self
704 2 3 if (defined $pos) { }
706 0 2 unless $foundkey eq $key
710 0 3 unless defined $pos