Branch Coverage

blib/lib/Device/WxM2.pm
Criterion Covered Total %
branch 3 234 1.2


line true false branch
380 0 0 unless (defined $Device::WxM2::wxPort)
454 0 0 $DEBUG > 2 ? :
462 0 0 scalar @_ ? :
465 0 0 unless $Device::WxM2::wxPort->write_settings
512 0 0 unless $count
513 0 0 if $count != length $crcByte0
521 0 0 unless $count
522 0 0 if $count != length $crc0
525 0 0 unless $count
526 0 0 if $count != length $returnChar
528 0 0 unless ($Device::WxM2::wxPort->write_done)
544 0 0 unless $self->_valCheck(2, \@str_in)
555 0 0 unless $self->_valCheck(2, \@str_in)
566 0 0 unless $self->_valCheck(2, \@str_in)
577 0 0 unless $self->_valCheck(2, \@str_in)
589 0 0 unless $self->_valCheck(2, \@str_in)
603 0 0 unless $self->_valCheck(2, \@str_in)
614 0 0 unless $self->_valCheck(2, \@str_in)
628 0 0 unless $self->_valCheck(2, \@str_in)
642 0 0 unless $self->_valCheck(2, \@str_in)
656 0 0 unless $self->_valCheck(2, \@str_in)
670 0 0 unless $self->_valCheck(2, \@str_in)
684 0 0 unless $self->_valCheck(2, \@str_in)
698 0 0 unless $self->_valCheck(2, \@str_in)
712 0 0 unless $self->_valCheck(1, \@str_in)
726 0 0 unless $self->_valCheck(1, \@str_in)
739 0 0 unless $self->_valCheck(1, \@str_in)
752 0 0 unless $self->_valCheck(1, \@str_in)
766 0 0 unless $self->_valCheck(2, \@yRainBytes)
775 0 0 unless $self->_valCheck(2, \@dRainBytes)
784 0 0 unless $self->_valCheck(2, \@baroPressure)
790 0 0 if ($$self{'isBaroCalSet'})
800 0 0 unless defined $baroCal
820 0 0 unless $self->_valCheck(2, \@str_in)
822 0 0 if $DEBUG > 1
830 0 0 unless $self->_valCheck(3, \@str_in)
835 0 0 if $DEBUG > 1
843 0 0 unless $self->_valCheck(3, \@str_in)
847 0 0 if $DEBUG > 1
855 0 0 unless $self->_valCheck(1, \@str_in)
858 0 0 if $DEBUG > 1
873 0 0 unless $self->_valCheck(2, \@str_in)
876 0 0 if ($DEBUG > 1)
895 0 0 unless $self->_valCheck(2, \@str_in)
897 0 0 if $DEBUG > 1
914 0 0 unless $self->_valCheck(2, \@str_in)
916 0 0 if $DEBUG > 1
942 0 0 unless ($self->write('WWR', 1, 90, 4, 32896))
949 0 0 unless ($self->write('WWR', 1, 52, 4, 32896))
956 0 0 unless ($self->write('WWR', 1, 154, 2, 0))
963 0 0 unless ($self->write('WWR', 1, 130, 2, 0))
988 0 0 if $DEBUG > 1
995 0 0 unless ($self->_get_ack)
996 0 0 if $DEBUG > 0
1001 0 0 if $DEBUG > 1
1008 0 0 unless ($self->_get_ack)
1009 0 0 if $DEBUG > 0
1044 0 0 if ($self->_get_ack) { }
1050 0 0 if ($$self{'isBaroCalSet'})
1063 0 0 if ($windGust == 0 or $str_in[11] == 255)
1076 0 0 if $DEBUG > 1
1094 0 0 if ($DEBUG > 0)
1095 0 0 $$self{'isBaroCalSet'} ? :
1168 0 0 if ($sizeOfBatch > $lastPtr) { }
1182 0 0 unless defined $newPtrHex
1186 0 0 if ($lastArchivedPtr > 32767)
1193 0 0 if $DEBUG > 0
1196 0 0 if ($newPtr < $lastArchivedPtr)
1199 0 0 unless ($self->getArcImg($i))
1204 0 0 if $DEBUG > 0
1209 0 0 if $rdFailed
1216 0 0 if $DEBUG > 0
1251 0 0 unless $self->_get_ack
1254 0 0 unless $count == 16 and $DEBUG > 0
1260 0 0 if ($$self{'isBaroCalSet'})
1273 0 0 if ($DEBUG > 1)
1329 0 0 unless (defined $log)
1382 0 0 unless (defined $log)
1409 0 2 if ($speed < 4 or $temp > 50) { }
1429 0 0 if $speed > 50
1434 0 0 if ($temp < 91.4) { }
1446 0 0 if $DEBUG > 0
1452 0 0 if $DEBUG > 1
1454 0 0 if $DEBUG > 0
1527 0 2 $loHumIdx == 10 ? :
1533 2 0 if ($t >= 0) { }
1571 0 0 if $DEBUG > 2
1585 0 0 if ($ts > 32767) { }
1600 0 0 unless $self->_valCheck(2, \@str_in)
1605 0 0 unless $self->_valCheck(2, \@str_in)
1631 0 0 if (/WRD/)
1633 0 0 $bank ? :
1635 0 0 if $DEBUG > 1
1644 0 0 if (/RRD/)
1654 0 0 if ($self->_get_ack) { }
1656 0 0 unless ($self->_valCheck($nibbles / 2, \@str_in))
1663 0 0 if ($DEBUG > 1)
1679 0 0 if (/WWR/)
1690 0 0 if (/RWR/)
1701 0 0 unless ($self->_get_ack)
1702 0 0 if $DEBUG > 0
1712 0 0 unless ($count == $bytes)
1713 0 0 if $DEBUG > 0
1727 0 0 if ($count == 0)
1728 0 0 if $DEBUG > 0
1729 0 0 if $DEBUG > 1
1735 0 0 if ($readChar == 33) { }
0 0 elsif ($readChar == 24) { }
0 0 elsif ($readChar == 6) { }
1736 0 0 if $DEBUG > 0
1737 0 0 if $DEBUG > 1
1741 0 0 if $DEBUG > 0
1742 0 0 if $DEBUG > 1
1749 0 0 if $DEBUG > 0
1750 0 0 if $DEBUG > 1
1761 0 0 if ($len != scalar @$array)
1766 0 0 unless (defined $$array[$i++])