line |
true |
false |
branch |
28
|
0 |
1 |
$^O eq 'MSWin32' ? : |
30
|
0 |
1 |
if ($Device::Hypnocube::Serial::OS_win) { } |
|
0 |
1 |
elsif (eval ' use Device::SerialPort; 1 ') { } |
|
1 |
0 |
elsif (eval ' use POSIX qw(:termios_h); use FileHandle; 1') { } |
|
0 |
0 |
elsif (-x '/bin/stty') { } |
32
|
0 |
0 |
if $@ |
78
|
0 |
0 |
unless $$param{'do_not_init'} |
88
|
0 |
0 |
if $self->serial |
90
|
0 |
0 |
if ($Device::Hypnocube::Serial::OS_win or $Device::Hypnocube::Serial::has_serialport) { } |
|
0 |
0 |
elsif (defined $Device::Hypnocube::Serial::stty_path) { } |
100
|
0 |
0 |
if $self->verbose |
118
|
0 |
0 |
if $Device::Hypnocube::Serial::OS_win |
138
|
0 |
0 |
unless $termios->getattr($serial->fileno) |
148
|
0 |
0 |
unless $termios->setattr($serial->fileno, 0) |
154
|
0 |
0 |
if $@ |
156
|
0 |
0 |
unless $termios->setattr($serial->fileno, 0) |
158
|
0 |
0 |
unless $termios->getattr($serial->fileno) |
160
|
0 |
0 |
if ($_ == 32) |
163
|
0 |
0 |
if ($_ == 8 or $_ == 9) |
168
|
0 |
0 |
unless $termios->setattr($serial->fileno, 0) |
183
|
0 |
0 |
if ($^O eq 'freebsd') { } |
192
|
0 |
0 |
if $? |
204
|
0 |
0 |
if $? |
208
|
0 |
0 |
unless open FH, "+>$port" |
225
|
0 |
0 |
unless $self->serial |
232
|
0 |
0 |
if ($$self{'serialtype'} eq 'FileHandle') { } |
254
|
0 |
0 |
unless $self->connect |
261
|
0 |
0 |
unless $self->serial |
263
|
0 |
0 |
if ($$self{'serialtype'} eq 'FileHandle') { } |
268
|
0 |
0 |
if $len != $out_len |