Condition Coverage

blib/lib/Ham/APRS/FAP.pm
Criterion Covered Total %
condition 83 237 35.0


and 3 conditions

line !l l&&!r l&&r condition
722 0 8 1 defined $fwdtstamp and $fwdtstamp - $currenttime < 43400
0 4 4 defined $currtstamp and $currtstamp - $currenttime < 43400
832 0 0 0 $numberid =~ /^(\d{2})$/o and $numberid > 0
0 0 0 $numberid =~ /^(\d{2})$/o and $numberid > 0 and $numberid < 95
851 0 0 0 $type eq 'O' || $type eq 'A' || $type eq 'N' || $type eq 'D' || $type eq 'S' || $type eq 'Q' and $overlay =~ /^[A-Z0-9]$/o
923 1 0 0 defined $symtable && defined $symcode
1075 0 0 0 $nmeafields[10] eq 'M' and $nmeafields[9] =~ /^(-?\d+(|\.\d+))$/o
1151 0 0 10 $course =~ /^\d{3}$/o and $course <= 360
0 0 10 $course =~ /^\d{3}$/o and $course <= 360 and $course >= 1
1656 1 0 1 $$options{'accept_broken_mice'} and $packet =~ s[^([\x26-\x7f][\x26-\x61][\x1c-\x7f]{2})\x20([\x21-\x7b\x7d][/\\A-Z0-9])(.*)][$1 $2$3]o
1748 10 0 0 $longitude >= 180 and $longitude <= 189
10 0 0 $longitude >= 190 and $longitude <= 199
1946 0 2 2 $c1 >= 0 and $c1 <= 89
2132 5 0 0 not defined $temp and $s =~ s/t(-{0,1}\d{1,3})//
2189 0 0 0 defined $w{'wind_speed'} and defined $w{'wind_direction'}
2238 0 0 2 defined $t and $t >= 10
2254 0 0 0 defined $w{'wind_speed'} and defined $w{'wind_direction'}
2304 0 0 1 defined $t and $t >= 10
2325 0 1 0 defined $w{'temp_in'} and not defined $w{'temp'}
2326 1 0 0 defined $w{'humidity_in'} and not defined $w{'humidity'}
2328 0 0 0 defined $w{'wind_speed'} and defined $w{'wind_direction'}
2535 1 1 1 $seen_qconstr and $digi =~ /^([0-9A-F]{32})$/
2595 5 1 23 $poschar >= 48 and $poschar <= 57
1 0 1 $poschar >= 65 and $poschar <= 90
1 0 0 $poschar >= 97 and $poschar <= 106
2603 2 4 17 $retval == 1 and $$rethash{'symbolcode'} ne '_'
2620 0 1 3 $retval == 1 and $$rethash{'symbolcode'} ne '_'
2721 1 0 1 $pos >= 0 and $pos <= 39
2731 0 0 0 $retval == 1 and $$rethash{'symbolcode'} ne '_'
2741 0 0 1 $retval == 1 and $$rethash{'symbolcode'} ne '_'
3364 0 0 0 $speed >= 0 and $course > 0
0 0 0 $speed >= 0 and $course > 0 and $course <= 360
3439 0 0 0 $speed >= 0 and $course >= 0

or 3 conditions

line l !l&&r !l&&!r condition
636 8 1 0 $stamptype eq 'z' or $stamptype eq '/'
643 0 0 3 $hour > 23 or $minute > 59
0 0 3 $hour > 23 or $minute > 59 or $second > 59
676 0 0 9 $day < 1 or $day > 31
0 0 9 $day < 1 or $day > 31 or $hour > 23
0 0 9 $day < 1 or $day > 31 or $hour > 23 or $minute > 59
830 0 0 0 $type eq 'C' or $type eq 'E'
851 0 0 0 $type eq 'O' || $type eq 'A' || $type eq 'N' || $type eq 'D' || $type eq 'S' || $type eq 'Q'
955 0 0 1 $1 > 23 or $2 > 59
0 0 1 $1 > 23 or $2 > 59 or $3 > 59
989 0 0 1 $year >= 2038 or $year < 1970
1536 0 0 22 $lat_deg > 89 or $lon_deg > 179
1570 0 0 0 $lat_min =~ / /io or $lon_min =~ / /io
1580 0 0 0 $lat_min =~ / /io or $lon_min =~ / /io
1590 0 0 1 $lat_min =~ / /io or $lon_min =~ / /io
1632 0 0 11 length $packet < 8 or length $dstcallsign != 6
1946 1 0 4 $c1 == -1 or $s1 == -1
2114 3 1 4 $s =~ s[^_{0,1}([\d \.\-]{3})/([\d \.]{3})g([\d \.]+)t(-{0,1}[\d \.]+)][] or $s =~ s/^_{0,1}c([\d \.\-]{3})s([\d \.]{3})g([\d \.]+)t(-{0,1}[\d \.]+)//
2154 0 0 5 $w{'humidity'} > 100 or $w{'humidity'} < 1
2189 5 0 0 defined $w{'temp'} or defined $w{'wind_speed'} and defined $w{'wind_direction'}
2245 0 0 2 $w{'humidity'} > 100 or $w{'humidity'} < 1
2254 2 0 0 defined $w{'temp'} or defined $w{'wind_speed'} and defined $w{'wind_direction'}
0 0 0 defined $w{'temp'} or defined $w{'wind_speed'} and defined $w{'wind_direction'} or defined $w{'pressure'}
0 0 0 defined $w{'temp'} or defined $w{'wind_speed'} and defined $w{'wind_direction'} or defined $w{'pressure'} or defined $w{'humidity'}
2310 0 0 0 $w{'humidity'} > 100 or $w{'humidity'} < 1
2315 0 0 0 $w{'humidity_in'} > 100 or $w{'humidity_in'} < 1
2328 1 0 0 defined $w{'temp'} or defined $w{'wind_speed'} and defined $w{'wind_direction'}
0 0 0 defined $w{'temp'} or defined $w{'wind_speed'} and defined $w{'wind_direction'} or defined $w{'pressure'}
0 0 0 defined $w{'temp'} or defined $w{'wind_speed'} and defined $w{'wind_direction'} or defined $w{'pressure'} or defined $w{'humidity'}
2358 0 0 5 $vals[$i] >= 999999 or $vals[$i] <= -999999
2559 6 5 284 ord $packettype == 39 or ord $packettype == 96
13 3 268 $packettype eq '!' or $packettype eq '='
16 7 261 $packettype eq '!' or $packettype eq '=' or $packettype eq '/'
10 6 255 $packettype eq '!' or $packettype eq '=' or $packettype eq '/' or $packettype eq '@'
2575 13 7 9 $packettype eq '!' or $packettype eq '/'
2583 7 6 16 $packettype eq '/' or $packettype eq '@'
2595 4 0 2 $poschar == 47 or $poschar == 92
4 0 2 $poschar == 47 or $poschar == 92 or $poschar >= 65 and $poschar <= 90
1 0 1 $poschar == 47 or $poschar == 92 or $poschar >= 65 and $poschar <= 90 or $poschar >= 97 and $poschar <= 106
2839 0 0 0 $addresscount < 14 or $addresscount % 7 != 0
3047 0 0 0 $digicount > 8 or $digicount < 1
3324 0 0 0 $lat < -89.99999 or $lat > 89.99999
0 0 0 $lat < -89.99999 or $lat > 89.99999 or $lon < -179.99999
0 0 0 $lat < -89.99999 or $lat > 89.99999 or $lon < -179.99999 or $lon > 179.99999
3397 0 0 0 $posambiguity > 0 or $posambiguity <= 4
3421 0 0 0 $posambiguity > 0 or $posambiguity <= 4