Branch Coverage

blib/lib/IO/Termios.pm
Criterion Covered Total %
branch 13 88 14.7


line true false branch
94 0 0 $_ eq '-upgrade' ? :
96 0 1 if ($upgrade)
98 0 0 unless "IO::Termios::Attrs"->new->getattr($fh->fileno)
131 0 1 unless ($handle)
133 0 0 if -t STDIN
134 0 0 if -t STDOUT
135 0 0 if -t STDERR
140 0 1 unless defined fileno $handle
178 0 0 unless sysopen my $tty, $path, 2 | $flags
179 0 0 unless my $self = $class->new($tty)
181 0 0 if defined $modestr
206 0 15 unless $attrs->getattr($self->fileno)
259 0 0 if defined $baud
260 0 0 if defined $csize
261 0 0 if defined $parity
262 0 0 if defined $stop
297 0 0 unless ioctl $self, 21525, $bitstr
309 0 0 unless ioctl $self, 21528, $bitstr
333 0 0 unless ioctl $self, 21527, $bitstr
343 0 0 unless ioctl $self, 21526, $bitstr
361 0 0 $set ? :
388 0 0 $bits & $_modem2bit{$_} ? :
410 0 0 unless my $bit = $_modem2bit{$_}
412 0 0 $flags->{$_} ? :
540 0 0 unless my $attrs = $self->getattr
545 0 0 unless my $attrs = $self->getattr
547 0 0 unless $self->setattr($attrs)
555 0 0 unless my $attrs = $self->getattr
557 0 0 unless $self->setattr($attrs)
676 0 9 unless my $attrs = $self->getattr
681 0 4 unless my $attrs = $self->getattr
683 0 4 unless $self->setattr($attrs)
707 0 2 unless my $attrs = $self->getattr
711 2 4 if $flag =~ s/^-//u
718 0 2 unless $self->setattr($attrs)
795 6 4 $set ? :
833 0 0 unless $cflag & 256
834 0 0 if $cflag & 512
844 0 0 $parity eq 'e' ? :
0 0 $parity eq 'o' ? :
0 0 if ($parity eq 'n') { }
855 0 0 if $self->getcflag & 64
865 0 0 $stop == 2 ? :
0 0 if ($stop == 1) { }