blib/lib/Device/Hypnocube/Serial.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 0 | 22 | 0.0 |
line | l | !l | condition |
---|---|---|---|
70 | 0 | 0 | $$param{'timeout'} || 10 |
108 | 0 | 0 | ($Device::Hypnocube::Serial::OS_win ? new(Win32::SerialPort($$self{'port'})) : new(Device::SerialPort($$self{'port'}))) || die("Can't open $$self{'port'}: $!\n") |
135 | 0 | 0 | 'FileHandle'->new("+>$port") || die("Could not open ${port}: $!\n") |
223 | 0 | 0 | $len ||= 1 |
264 | 0 | 0 | $offset || 0 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
58 | 0 | 0 | 0 | $$param{'serial'} || ($^O eq 'MSWin32' ? 'COM1' : ($^O =~ /^(?:(?:free|net|open)bsd|bsd(?:os|i))$/ ? -e '/dev/cuad0' ? '/dev/cuad0' : '/dev/cuaa0' : '/dev/ttyS1')) |
90 | 0 | 0 | 0 | $Device::Hypnocube::Serial::OS_win or $Device::Hypnocube::Serial::has_serialport |
163 | 0 | 0 | 0 | $_ == 8 or $_ == 9 |
259 | 0 | 0 | 0 | $len ||= length $buf |