Condition Coverage

blib/lib/GPS/Serial.pm
Criterion Covered Total %
condition 6 26 23.0


and 3 conditions

line !l l&&!r l&&r condition
58 600 0 0 $self->{'verbose'} and $buf
89 0 14 0 $self->{'protocol'} eq 'NMEA' && substr($line, 0, 1) ne '$'
232 0 0 627 ref $l && shift()

or 2 conditions

line l !l condition
46 0 600 $len ||= 1
122 0 0 $offset || 0
148 0 1 ($GPS::Serial::OS_win ? 'Win32::SerialPort'->new($self->{'port'}) : 'Device::SerialPort'->new($self->{'port'})) || die("Can't open $self->{'port'}: $!\n")
168 0 0 'FileHandle'->new("+>$port") || die("Could not open ${port}: $!\n")

or 3 conditions

line l !l&&r !l&&!r condition
113 0 0 0 $len ||= length $buf
133 0 0 1 $GPS::Serial::OS_win or $GPS::Serial::has_serialport
196 0 0 0 $_ == VSTART() or $_ == VSTOP()