Branch Coverage

blib/lib/NetAthlon2/RAW.pm
Criterion Covered Total %
branch 48 72 66.6


line true false branch
46 7 0 if (defined $file and -f $file) { }
49 0 7 if exists $$self{'debug'}
50 0 7 unless CORE::open *FP, "< $file"
61 0 7 if $$self{'RAW'}[0] != 251
66 0 7 if $$self{'RAW'}[2] != 1
85 7 0 if ($$self{'file'} =~ /Bike(\d{4})-(\d{2})-(\d{2}) (\d{1,2})-(\d{2})([ap]m)\.RAW$/) { }
93 0 7 if exists $$self{'debug'} and $$self{'debug'} >= 5
96 7 0 if (${$$self{'RAW'};}[8] =~ /^(\d{2})\.(\d{2})\.(\d{2})$/) { }
101 0 7 if exists $$self{'debug'} and $$self{'debug'} >= 5
110 0 7 if abs $mina - $minb > $timeDelta
116 6 1 if $ampm eq 'pm' and $hour < 12
117 0 7 if $ampm eq 'am' and $hour == 12
119 0 7 if exists $$self{'debug'} and $$self{'debug'} >= 5
129 0 7 if $d ne "$year-$mon-$day ${hour}:$min"
139 0 7 if $$self{'RAW'}[-5] != 254
151 0 7 if $$self{'RAW'}[-2] != 256
168 1928 7 exists $$self{'data'}{'Check Points'} ? :
173 1928 7 exists $$self{'data'}{'Check Points'} ? :
197 1923 12 if ($$_{'Cadence'} > 0)
199 57 1866 if not exists $$self{'data'}{'Max Cadence'} or $$self{'data'}{'Max Cadence'} < $$_{'Cadence'}
203 1928 7 if ($$_{'Speed'} > 0)
204 88 1840 if not exists $$self{'data'}{'Max Speed'} or $$self{'data'}{'Max Speed'} < $$_{'Speed'}
210 1928 0 if ($$_{'Watts'} > 0)
212 100 1828 if not exists $$self{'data'}{'Max Watts'} or $$self{'data'}{'Max Watts'} < $$_{'Watts'}
216 1857 78 if ($$_{'Heart Rate'} > 0)
218 112 1745 if not exists $$self{'data'}{'Max Heart Rate'} or $$self{'data'}{'Max Heart Rate'} < $$_{'Heart Rate'}
221 1928 7 if $$_{'Calculated Distance'} + 0 > 0
224 7 0 if $cc > 0
225 7 0 if $wc > 0
226 6 1 if $hrc > 0
247 0 7 if scalar @{$$self{'data'}{'Check Points'};} != int $$self{'data'}{'Elapsed Time'} / $$self{'data'}{'Sample Rate'} + 1.99
255 0 7 unless $self->open($file)
257 0 7 if exists $$self{'debug'}
263 7 0 if $^O ne 'MSWin32'
271 0 7 if scalar @{$$self{'RAW'};} < 14
295 0 7 if exists $$self{'debug'}