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)
61 0 0 if ioctl $fh, &IO::Tty::Constant::TIOCGWINSZ, $winsize and ioctl $self, &IO::Tty::Constant::TIOCSWINSZ, $winsize
64 0 0 if $^W
74 0 1 unless ioctl $self, &IO::Tty::Constant::TIOCGWINSZ(), my $winsize = ''
83 0 0 unless ioctl $self, &IO::Tty::Constant::TIOCSWINSZ(), $winsize
90 0 3 unless POSIX::isatty($self)
93 0 3 unless ($termios)
97 0 3 unless ($termios->getattr($ttyno))
106 0 3 unless ($termios->setattr($ttyno, &POSIX::TCSANOW))