Branch Coverage

blib/lib/POSIX/bsearch.pm
Criterion Covered Total %
branch 32 38 84.2


line true false branch
31 1 7 unless $upperbound
39 0 26 if $icount++ > 40
41 1 25 if ($guess == $lowerbound)
48 10 15 if ($compres < 0)
49 1 9 unless ($guess)
57 11 4 if ($compres > 0)
58 1 10 if ($guess == $#$table)
69 1 3 unless wantarray
74 0 3 if ($guess == 1 + $lowerbound) { }
81 0 12 if $icount++ > 40
84 1 11 if ($guess == $lowerbound)
92 0 11 if ($compres < 0)
95 8 3 if ($compres > 0)
99 2 1 if ($guess == 1 + $lowerbound)
109 0 3 if ($guess == -1 + $upperbound) { }
116 0 10 if $icount++ > 40
122 1 9 if ($compres > 0)
125 3 6 if ($compres < 0)
129 2 4 if ($guess == -1 + $upperbound)