Branch Coverage

blib/lib/Math/SlideRule.pm
Criterion Covered Total %
branch 32 44 72.7


line true false branch
79 406 487 if ($ref->[$mid] > $value) { }
444 43 elsif ($ref->[$mid] < $value) { }
89 0 44 if ($lo > $#$ref) { }
92 24 20 if (abs $ref->[$lo] - $value >= abs $ref->[$hi] - $value) { }
113 0 4 if @_ < 1
114 0 4 unless defined $n and &looks_like_number($n)
124 0 6 unless &looks_like_number($m)
126 0 6 if $m < 0
134 6 0 if ($distance < $self->C->{'dist'}[0])
144 0 4 if $neg_count % 2 == 1
154 0 16 if @_ < 1
155 0 16 unless defined $n and &looks_like_number($n)
174 0 24 unless &looks_like_number($m)
176 10 14 if $m < 0
190 8 16 if ($distance > $self->C->{'dist'}[-1])
200 4 12 if $neg_count % 2 == 1
209 0 6 unless defined $n and &looks_like_number($n)
210 0 6 if $n < 0
214 3 3 if ($n_exp % 2 == 1)
242 14 54 $val < 0 ? :
247 9 59 if ($val < $min) { }
39 20 elsif ($val >= $max) { }