Branch Coverage

blib/lib/GPS/Garmin.pm
Criterion Covered Total %
branch 2 82 2.4


line true false branch
32 0 2 unless $param{'do_not_init'}
39 0 3 if ($self->serial)
60 0 0 @_ ? :
66 0 0 @_ ? :
77 0 0 unless (ref $self->{'pidbytes'} eq 'ARRAY')
118 0 0 if $self->get_reply(1) == 21
125 0 0 if $cb
146 0 0 if ($cmd{$t})
158 0 0 if ($result[0] == 21)
167 0 0 if ($self->{'product_id'} == 694) { }
0 0 elsif ($self->{'product_id'} == 154 or $self->{'product_id'} == 169 or $self->{'product_id'} == 315 or $self->{'product_id'} == 111 or $self->{'product_id'} == 248 or $self->{'product_id'} == 292) { }
190 0 0 if $lat < 0
192 0 0 if $lon < 0
231 0 0 if (@_)
234 0 0 if $buf != $self->cur_pid
245 0 0 if $_ % 6 == 0
252 0 0 if (pack('C', $self->checksum($full_packet)) ne $csum)
254 0 0 if $self->verbose
269 0 0 unless $self->cur_request
295 0 0 unless $p{'no_reply'}
297 0 0 if (@result and $result[0] == 21)
298 0 0 if $self->verbose
313 0 0 if (@_) { }
322 0 0 if $self->verbose
333 0 0 if ($i > -1)
335 0 0 if $i == -1
349 0 0 if $self->{'verbose'}
359 0 0 if (defined $buf and $buf == 16)
362 0 0 if $buf == 0
364 0 0 if ($buf == 3)
365 0 0 if $self->{'verbose'}
370 0 0 unless defined $gcommand
372 0 0 if $gcommand =~ /byte$/
374 0 0 if $self->verbose
377 0 0 if $handler->can($gcommand)
379 0 0 if (not $gcommand =~ /^(?:Wpt|Trk|Rte)_(?:data|hdr)$/ and $data[0] == 6)
380 0 0 unless $command
385 0 0 if (not $gcommand =~ /^(?:Wpt|Trk|Rte)_(?:data|hdr)$/ and $data[0] == 21)
386 0 0 if $self->verbose
389 0 0 if @data == 1
394 0 0 if $self->verbose