Branch Coverage

blib/lib/Net/TCP/PtyServer.pm
Criterion Covered Total %
branch 0 78 0.0


line true false branch
187 0 0 unless $ws_xpixel
188 0 0 unless $ws_ypixel
218 0 0 unless $socket
224 0 0 unless defined $ppid
226 0 0 if ($ppid) { }
233 0 0 unless pipe STAT_RDR, STAT_WTR
243 0 0 unless defined $pid
244 0 0 unless ($pid)
255 0 0 unless open STDIN, '<&' . $slave->fileno
257 0 0 unless open STDOUT, '>&' . $slave->fileno
260 0 0 unless open STDERR, '>>log.stderr'
310 0 0 unless defined $errstatus
312 0 0 if ($errstatus)
335 0 0 if $rtn and $rtn == 0
336 0 0 unless $rtn
346 0 0 unless $read
348 0 0 if ($toPTY)
351 0 0 if ($buf eq "\r")
353 0 0 if ($buf eq "\n") { }
361 0 0 if ($buf eq "\377")
364 0 0 if ($buf eq "\377") { }
0 0 elsif ($buf eq "\376" or $buf eq "\375" or $buf eq "\374" or $buf eq "\373") { }
0 0 elsif ($buf eq "\372") { }
0 0 elsif ($buf eq "\366") { }
0 0 elsif ($buf eq "\364") { }
0 0 elsif ($buf eq "\361") { }
372 0 0 if ($buf eq "\037") { }
376 0 0 if $buf eq "\377"
379 0 0 if $buf eq "\377"
382 0 0 if $buf eq "\377"
385 0 0 if $buf eq "\377"
394 0 0 if $pid
461 0 0 if $nfound < 0
462 0 0 if ($nfound > 0)
466 0 0 if (vec $rout, fileno $tty, 1) { }
0 0 elsif (vec $rout, fileno $fh, 1 and vec $wout, fileno $tty, 1) { }
469 0 0 unless vec $rin, fileno $tty, 1
486 0 0 if ($@ and $@ =~ /HUP/) { }
0 0 elsif ($@) { }