Branch Coverage

blib/lib/Algorithm/BinarySearch/Vec.pm
Criterion Covered Total %
branch 24 32 75.0


line true false branch
72 5 0 unless defined $ilo
73 5 0 unless defined $ihi
77 6 10 if (vec($$vr, $imid, $nbits) < $key) { }
83 2 3 $ilo == $ihi && vec($$vr, $ilo, $nbits) == $key ? :
91 6 0 unless defined $ilo
92 6 0 unless defined $ihi
96 6 11 if (vec($$vr, $imid, $nbits) < $key) { }
102 0 6 if vec($$vr, $ilo, $nbits) == $key
103 2 4 if $ihi < $imax and vec($$vr, $ihi, $nbits) == $key
104 3 1 if $ilo > $imin or vec($$vr, $ilo, $nbits) < $key
113 6 0 unless defined $ilo
114 6 0 unless defined $ihi
118 9 9 if (vec($$vr, $imid, $nbits) > $key) { }
124 0 6 if $ihi < $imax and vec($$vr, $ihi, $nbits) == $key
125 3 3 if vec($$vr, $ilo, $nbits) >= $key
126 1 2 $ihi >= $imax ? :