Branch Coverage

blib/lib/IO/Termios.pm
Criterion Covered Total %
branch 9 82 10.9


line true false branch
97 0 0 $_ eq '-upgrade' ? :
99 0 2 if ($upgrade)
101 0 0 unless 'IO::Termios::Attrs'->new->getattr($fh->fileno)
134 0 1 unless ($handle)
136 0 0 if -t STDIN
137 0 0 if -t STDOUT
138 0 0 if -t STDERR
143 0 1 unless defined fileno $handle
181 0 0 unless sysopen my $tty, $path, 2 | $flags
182 0 0 unless my $self = $class->new($tty)
184 0 0 if defined $modestr
209 0 8 unless $attrs->getattr($self->fileno)
262 0 0 if defined $baud
263 0 0 if defined $csize
264 0 0 if defined $parity
265 0 0 if defined $stop
300 0 0 unless ioctl $self, 21525, $bitstr
312 0 0 unless ioctl $self, 21528, $bitstr
336 0 0 unless ioctl $self, 21527, $bitstr
346 0 0 unless ioctl $self, 21526, $bitstr
364 0 0 $set ? :
391 0 0 $bits & $_modem2bit{$_} ? :
413 0 0 unless my $bit = $_modem2bit{$_}
415 0 0 $flags->{$_} ? :
543 0 0 unless my $attrs = $self->getattr
548 0 0 unless my $attrs = $self->getattr
550 0 0 unless $self->setattr($attrs)
558 0 0 unless my $attrs = $self->getattr
560 0 0 unless $self->setattr($attrs)
660 0 4 unless my $attrs = $self->getattr
665 0 4 unless my $attrs = $self->getattr
667 0 4 unless $self->setattr($attrs)
745 2 2 $set ? :
783 0 0 unless $cflag & 256
784 0 0 if $cflag & 512
794 0 0 $parity eq 'e' ? :
0 0 $parity eq 'o' ? :
0 0 $parity eq 'n' ? :
805 0 0 if $self->getcflag & 64
815 0 0 $stop == 2 ? :
0 0 $stop == 1 ? :