Branch Coverage

blib/lib/Math/SlideRule.pm
Criterion Covered Total %
branch 42 44 95.4


line true false branch
79 477 522 if ($ref->[$mid] > $value) { }
475 47 elsif ($ref->[$mid] < $value) { }
89 0 48 if ($lo > $#$ref) { }
92 26 22 if (abs $ref->[$lo] - $value >= abs $ref->[$hi] - $value) { }
113 1 9 if @_ < 1
114 2 7 unless defined $n and &looks_like_number($n)
125 2 8 unless &looks_like_number($m)
127 3 5 if $m < 0
135 8 0 if ($distance < $self->C->{'dist'}[0])
145 1 4 if $neg_count % 2 == 1
155 1 20 if @_ < 1
156 2 18 unless defined $n and &looks_like_number($n)
176 2 24 unless &looks_like_number($m)
178 10 14 if $m < 0
192 8 16 if ($distance > $self->C->{'dist'}[-1])
202 4 12 if $neg_count % 2 == 1
211 2 7 unless defined $n and &looks_like_number($n)
212 1 6 if $n < 0
216 3 3 if ($n_exp % 2 == 1)
244 17 59 $val < 0 ? :
249 9 67 if ($val < $min) { }
45 22 elsif ($val >= $max) { }