Branch Coverage

blib/lib/IO/Tty.pm
Criterion Covered Total %
branch 10 22 45.4


line true false branch
34 0 0 unless IO::File::open($tty, $dev, $mode)
44 1 2 unless POSIX::isatty($fh)
46 0 2 unless POSIX::isatty($self)
49 2 0 if ioctl $fh, &IO::Tty::Constant::TIOCGWINSZ, $winsize and ioctl $self, &IO::Tty::Constant::TIOCSWINSZ, $winsize
52 0 0 if $^W
63 0 5 unless ioctl $self, &IO::Tty::Constant::TIOCGWINSZ(), $winsize
72 0 3 unless ioctl $self, &IO::Tty::Constant::TIOCSWINSZ(), $winsize
79 0 4 unless POSIX::isatty($self)
82 0 4 unless ($termios)
86 0 4 unless ($termios->getattr($ttyno))
99 0 4 unless ($termios->setattr($ttyno, &POSIX::TCSANOW))