Branch Coverage

blib/lib/IO/Termios.pm
Criterion Covered Total %
branch 8 76 10.5


line true false branch
106 0 1 unless ($handle)
108 0 0 if -t STDIN
109 0 0 if -t STDOUT
110 0 0 if -t STDERR
115 0 1 unless defined fileno $handle
153 0 0 unless sysopen my $tty, $path, 2 | $flags
154 0 0 unless my $self = $class->new($tty)
156 0 0 if defined $modestr
181 0 8 unless $attrs->getattr($self->fileno)
234 0 0 if defined $baud
235 0 0 if defined $csize
236 0 0 if defined $parity
237 0 0 if defined $stop
272 0 0 unless ioctl $self, 21525, $bitstr
284 0 0 unless ioctl $self, 21528, $bitstr
308 0 0 unless ioctl $self, 21527, $bitstr
318 0 0 unless ioctl $self, 21526, $bitstr
336 0 0 $set ? :
363 0 0 $bits & $_modem2bit{$_} ? :
385 0 0 unless my $bit = $_modem2bit{$_}
387 0 0 $flags->{$_} ? :
515 0 0 unless my $attrs = $self->getattr
520 0 0 unless my $attrs = $self->getattr
522 0 0 unless $self->setattr($attrs)
530 0 0 unless my $attrs = $self->getattr
532 0 0 unless $self->setattr($attrs)
632 0 4 unless my $attrs = $self->getattr
637 0 4 unless my $attrs = $self->getattr
639 0 4 unless $self->setattr($attrs)
717 2 2 $set ? :
755 0 0 unless $cflag & 256
756 0 0 if $cflag & 512
766 0 0 $parity eq 'e' ? :
0 0 $parity eq 'o' ? :
0 0 $parity eq 'n' ? :
777 0 0 if $self->getcflag & 64
787 0 0 $stop == 2 ? :
0 0 $stop == 1 ? :