Condition Coverage

blib/lib/Device/SerialPort.pm
Criterion Covered Total %
condition 1 158 0.6


and 3 conditions

line !l l&&!r l&&r condition
285 0 0 0 -f $nameOrConf and not -c $nameOrConf
304 0 0 0 $ok and defined $ok2
469 0 0 0 $$self{'IOSSIOSPEED_BAUD'} != -1 and $self->can_arbitrary_baud
620 0 0 0 $lockfile and not $self
670 0 0 0 defined $$bits{'TIOCMBIS'} and defined $$bits{'TIOCMBIC'}
0 0 0 defined $$bits{'TIOCMBIS'} and defined $$bits{'TIOCMBIC'} and defined $$bits{'TIOCM_RTS'}
0 0 0 defined $$bits{'TIOCMBIS'} and defined $$bits{'TIOCMBIC'} and defined $$bits{'TIOCM_RTS'} and defined $$bits{'TIOCSDTR'} && defined $$bits{'TIOCCDTR'} || defined $$bits{'TIOCM_DTR'}
703 0 0 0 defined $$bits{'portable_TIOCINQ'} and defined $$bits{'TIOCOUTQ'}
712 0 0 0 $self->can_status and defined $$bits{'TIOCSERGETLSR'}
0 0 0 $self->can_status and defined $$bits{'TIOCSERGETLSR'} and TIOCM_LE()
720 0 0 0 defined $$bits{'TIOCMBIS'} and defined $$bits{'TIOCMBIC'}
0 0 0 defined $$bits{'TIOCMBIS'} and defined $$bits{'TIOCMBIC'} and defined $$bits{'TIOCM_RTS'}
1419 0 0 0 $got == 0 and $wanted != 0
1421 0 0 0 not $ready and 0 == $ok
1466 0 0 0 nocarp() and @_ == 1
1641 0 0 0 $best_pos and $mpos > $best_pos
1662 0 0 0 $best_pos and $mpos > $best_pos
1701 0 0 0 nocarp() and $$self{'_T_INPUT'}
1902 0 0 0 defined $$bits{'TIOCSDTR'} and defined $$bits{'TIOCCDTR'}
2044 0 0 0 defined $$self{'HANDLE'} and $$self{'HANDLE'}->opened

or 2 conditions

line l !l condition
79 0 0 $$bits{'CRTSCTS'} || 0
81 0 0 $$bits{'OCRNL'} || 0
83 0 0 $$bits{'ONLCR'} || 0
85 0 0 $$bits{'ECHOKE'} || 0
87 0 0 $$bits{'ECHOCTL'} || 0
89 0 0 $$bits{'TIOCSER_TEMT'} || $$bits{'TIOCM_LE'} || 0
97 0 0 $$bits{'TIOCM_CAR'} || $$bits{'TIOCM_CD'} || 0
100 0 0 $$bits{'TIOCM_RNG'} || $$bits{'TIOCM_RI'} || 0
103 0 0 $$bits{'TIOCM_CTS'} || 0
106 0 0 $$bits{'TIOCM_DSR'} || 0
110 0 0 $$bits{'TIOCM_RTS'} || 0
113 0 0 $$bits{'TIOCM_DTR'} || 0
1846 0 0 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
228 0 0 1 not defined $from_posix or $from_posix == 0
278 0 0 0 ref $proto || $proto
545 0 0 0 $Babble or not $self
601 0 0 0 ref $proto || $proto
621 0 0 0 $Babble or not $self
670 0 0 0 defined $$bits{'TIOCSDTR'} && defined $$bits{'TIOCCDTR'} || defined $$bits{'TIOCM_DTR'}
783 0 0 0 $$self{'U_MSG'} or $Babble
821 0 0 0 $$self{'U_MSG'} or $Babble
853 0 0 0 $$self{'U_MSG'} or $Babble
889 0 0 0 $$self{'U_MSG'} or $Babble
914 0 0 0 $$self{'U_MSG'} or $Babble
930 0 0 0 $v < 0 or $v > 255
941 0 0 0 $v < 0 or $v > 255
952 0 0 0 $v < 0 or $v > 255
963 0 0 0 $v < 0 or $v > 255
974 0 0 0 $v < 0 or $v > 255
985 0 0 0 $v < 0 or $v > 255
996 0 0 0 $v < 0 or $v > 255
1007 0 0 0 $v < 0 or $v > 255
1018 0 0 0 $v < 0 or $v > 255
1884 0 0 0 $Babble or $$self{'_DEBUG'}
2106 0 0 0 ref $proto || $proto
2260 0 0 0 $string_in ne '' or $match ne ''
2278 0 0 0 $string_in ne '' or $match ne ''