line |
true |
false |
branch |
21
|
0 |
3 |
$^O eq 'MSWin32' ? : |
23
|
0 |
3 |
if ($GPS::Serial::OS_win) { } |
|
3 |
0 |
elsif (eval ' use Device::SerialPort; 1 ') { } |
|
0 |
0 |
elsif (eval ' use POSIX qw(:termios_h); use FileHandle; 1') { } |
|
0 |
0 |
elsif (-x '/bin/stty') { } |
25
|
0 |
0 |
if $@ |
48
|
0 |
600 |
unless $self->serial |
52
|
600 |
0 |
if ($$self{'serialtype'} eq 'FileHandle') { } |
58
|
0 |
600 |
if ($$self{'verbose'} and $buf) { } |
78
|
0 |
14 |
unless $self->serial |
84
|
27 |
573 |
unless length($line) % 32 |
87
|
14 |
586 |
if ($buf eq $/) |
89
|
0 |
14 |
$$self{'protocol'} eq 'NMEA' && substr($line, 0, 1) ne '$' ? : |
102
|
0 |
0 |
$buf eq "\cP" ? : |
111
|
0 |
0 |
unless $self->connect |
115
|
0 |
0 |
if ($$self{'verbose'}) |
119
|
0 |
0 |
unless $self->serial |
121
|
0 |
0 |
if ($$self{'serialtype'} eq 'FileHandle') { } |
125
|
0 |
0 |
if $len != $out_len |
131
|
0 |
1 |
if $self->serial |
133
|
1 |
0 |
if ($GPS::Serial::OS_win or $GPS::Serial::has_serialport) { } |
|
0 |
0 |
elsif (defined $GPS::Serial::stty_path) { } |
141
|
0 |
0 |
if $self->verbose |
155
|
0 |
0 |
if $GPS::Serial::OS_win |
171
|
0 |
0 |
unless $termios->getattr($serial->fileno) |
181
|
0 |
0 |
unless $termios->setattr($serial->fileno, TCSANOW()) |
187
|
0 |
0 |
if $@ |
189
|
0 |
0 |
unless $termios->setattr($serial->fileno, TCSANOW()) |
191
|
0 |
0 |
unless $termios->getattr($serial->fileno) |
193
|
0 |
0 |
if ($_ == NCCS()) |
196
|
0 |
0 |
if ($_ == VSTART() or $_ == VSTOP()) |
201
|
0 |
0 |
unless $termios->setattr($serial->fileno, TCSANOW()) |
213
|
0 |
0 |
if ($^O eq 'freebsd') { } |
216
|
0 |
0 |
if $? |
221
|
0 |
0 |
if $? |
225
|
0 |
0 |
unless open FH, "+>$port" |