Branch Coverage

blib/lib/BikePower.pm
Criterion Covered Total %
branch 55 144 38.1


line true false branch
193 0 22 if (defined $val) { }
0 6 if (defined $val) { }
1 12 if (defined $val) { }
0 10 if (defined $val) { }
0 0 if (defined $val) { }
0 6 if (defined $val) { }
0 0 if (defined $val) { }
0 0 if (defined $val) { }
0 0 if (defined $val) { }
0 0 if (defined $val) { }
0 0 if (defined $val) { }
0 0 if (defined $val) { }
0 0 if (defined $val) { }
0 4 if (defined $val) { }
0 1 if (defined $val) { }
0 0 if (defined $val) { }
0 0 if (defined $val) { }
0 0 if (defined $val) { }
0 0 if (defined $val) { }
0 0 if (defined $val) { }
6 6 if (defined $val) { }
0 6 if (defined $val) { }
0 0 if (defined $val) { }
0 0 if (defined $val) { }
0 0 if (defined $val) { }
6 11 if (defined $val) { }
0 22 if (defined $val) { }
0 6 if (defined $val) { }
0 6 if (defined $val) { }
0 6 if (defined $val) { }
10 33 if (defined $val) { }
1 2 if (defined $val) { }
0 6 if (defined $val) { }
1 24 if (defined $val) { }
7 26 if (defined $val) { }
1 34 if (defined $val) { }
1 29 if (defined $val) { }
218 0 4 ref $class ? :
223 4 0 if ($a{'-no-ini'} or not $s->load_defaults)
224 1 3 unless ($a{'-no-default'})
229 0 2 unless ($s->given or $a{'-no-default'})
238 0 78 unless exists $BikePower::members{$k}
240 66 12 unless defined $$v[3]
246 1 1 if (ref $_[0] and $_[0]->isa('BikePower')) { }
260 0 44 if _nosave($k) or not defined $$old{$k} or $$old{$k} eq ''
270 4 22 if _nosave($k)
280 21 0 if (not $k =~ /^[_\-]/ and defined $v and $v ne '')
288 0 0 if ($^O eq 'MSWin32')
292 0 0 if (defined $home)
297 0 0 unless (defined $home)
301 0 0 $^O eq 'MSWin32' ? :
308 0 0 unless $file
310 0 0 unless (-r $file)
314 0 0 if ($@)
327 0 0 unless $file
331 0 0 if (not $k =~ /^[_\-]/ || _nosave($k) and $v ne '')
335 0 0 unless (open FILE, ">$file")
340 0 0 if (not $@) { }
365 10 0 if ($s =~ /^\s*(\S+)/) { }
381 0 6 if (defined $self->A2) { }
395 0 2 $self->cross_wind ? :
401 1 1 if ($self->given eq 'P' or $self->given eq 'C')
410 0 16 if ($V + $eff_H < 0)
415 4 12 if ($P_try < $self->power) { }
428 0 2 if ($self->velocity + $eff_H < 0)
446 2 0 if ($self->power > 0) { }
463 2 0 if (not $self->imperial) { }
477 0 0 if (not $self->imperial) { }
506 0 0 if ($self->given eq 'C') { }
0 0 elsif ($self->given eq 'P') { }
519 0 0 if ($self->given eq 'P' or $self->given eq 'C') { }
529 0 0 if (not $self->imperial) { }