Branch Coverage

blib/lib/AnyEvent/GPSD.pm
Criterion Covered Total %
branch 0 70 0.0


line true false branch
161 0 0 if ($event = $_[0]{"on_$event"})
184 0 0 if ('AnyEvent'->now - $$self{'fix'}{'time'} > $$self{'interval'} * 1.9)
198 0 0 if $$self{'fh'}
203 0 0 unless $self
205 0 0 if ($fh) { }
228 0 0 unless $_[0]{'rbuf'} =~ s/^([^\015\012]*)\015\012//
231 0 0 unless $$self{'replay_cb'}
264 0 0 if @{$$self{'command'};} == 1
272 0 0 if $$self{'logfh'}
275 0 0 unless ($line =~ /^GPSD,(.)=(.*)$/)
287 0 0 if ($type eq 'O') { }
0 0 elsif ($type eq 'Y') { }
0 0 elsif ($type eq 'C') { }
294 0 0 if (@data > 3) { }
298 0 0 $type eq '?' ? :
301 0 0 if (my $s = $$self{'stretch'})
314 0 0 if $$fix{'mode'} eq '?'
338 0 0 $data >= 1 ? :
344 0 0 if (@{$$self{'command'};} and $$self{'command'}[0][0] eq $type)
346 0 0 if @{$$self{'command'};}
370 0 0 unless defined $max
374 0 0 unless my $fix = $$self{'fix'}
375 0 0 unless $$fix{'mode'} >= 2
379 0 0 unless $diff <= $max
381 0 0 if ($$fix{'speed'} >= $$self{'min_speed'}) { }
394 0 0 if $$self{'logfh'}
411 0 0 if (defined $path) { }
0 0 elsif ($$self{'logfh'}) { }
416 0 0 unless open $$self{'logfh'}, '>:perlio', $path
466 0 0 if (defined $path) { }
471 0 0 unless open my $fh, '<:perlio', $path
484 0 0 if (2 > length $line) { }
491 0 0 if ($type eq 'start')
497 0 0 if ($type eq 'start' or $$self{'compress'} and ($$self{'fix'} and $$self{'fix'}{'mode'} < 2 || $$self{'fix'}{'speed'} < $$self{'min_speed'}))
508 0 0 if $type eq 'raw'