Branch Coverage

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


line true false branch
45 0 0 unless IO::File::open($tty, $dev, $mode)
55 0 0 unless POSIX::isatty($fh)
57 0 0 unless POSIX::isatty($self)
59 0 0 if ioctl $fh, &IO::Tty::Constant::TIOCGWINSZ, $winsize and ioctl $self, &IO::Tty::Constant::TIOCSWINSZ, $winsize
62 0 0 if $^W
72 0 1 unless ioctl $self, &IO::Tty::Constant::TIOCGWINSZ(), my $winsize = ''
81 0 0 unless ioctl $self, &IO::Tty::Constant::TIOCSWINSZ(), $winsize
88 0 3 unless POSIX::isatty($self)
91 0 3 unless ($termios)
95 0 3 unless ($termios->getattr($ttyno))
104 0 3 unless ($termios->setattr($ttyno, &POSIX::TCSANOW))