blib/lib/GPS/Serial.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 6 | 26 | 23.0 |
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() |
line | l | !l | condition |
---|---|---|---|
46 | 0 | 600 | $len ||= 1 |
122 | 0 | 0 | $offset || 0 |
146 | 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") |
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() |