Branch Coverage

blib/lib/IO/Tty.pm
Criterion Covered Total %
branch 5 22 22.7


line true false branch
47 0 0 unless IO::File::open($tty, $dev, $mode)
57 0 0 unless POSIX::isatty($fh)
59 0 0 unless POSIX::isatty($self)
62 0 0 if ioctl $fh, &IO::Tty::Constant::TIOCGWINSZ, $winsize and ioctl $self, &IO::Tty::Constant::TIOCSWINSZ, $winsize
65 0 0 if $^W
76 0 1 unless ioctl $self, &IO::Tty::Constant::TIOCGWINSZ(), $winsize
85 0 0 unless ioctl $self, &IO::Tty::Constant::TIOCSWINSZ(), $winsize
92 0 3 unless POSIX::isatty($self)
95 0 3 unless ($termios)
99 0 3 unless ($termios->getattr($ttyno))
108 0 3 unless ($termios->setattr($ttyno, &POSIX::TCSANOW))