Condition Coverage

blib/lib/Ham/APRS/FAP.pm
Criterion Covered Total %
condition 82 249 32.9


and 3 conditions

line !l l&&!r l&&r condition
723 0 8 1 defined $fwdtstamp and $fwdtstamp - $currenttime < 43400
0 0 8 defined $currtstamp and $currtstamp - $currenttime < 43400
833 0 0 0 $numberid =~ /^(\d{2})$/o and $numberid > 0
0 0 0 $numberid =~ /^(\d{2})$/o and $numberid > 0 and $numberid < 95
852 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
924 1 0 0 defined $symtable && defined $symcode
1076 0 0 0 $nmeafields[10] eq 'M' and $nmeafields[9] =~ /^(-?\d+(|\.\d+))$/o
1152 0 0 10 $course =~ /^\d{3}$/o and $course <= 360
0 0 10 $course =~ /^\d{3}$/o and $course <= 360 and $course >= 1
1657 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
1749 10 0 0 $longitude >= 180 and $longitude <= 189
10 0 0 $longitude >= 190 and $longitude <= 199
1947 0 2 2 $c1 >= 0 and $c1 <= 89
2133 5 0 0 not defined $temp and $s =~ s/t(-{0,1}\d{1,3})//
2190 0 0 0 defined $w{'wind_speed'} and defined $w{'wind_direction'}
2239 0 0 2 defined $t and $t >= 10
2255 0 0 0 defined $w{'wind_speed'} and defined $w{'wind_direction'}
2305 0 0 1 defined $t and $t >= 10
2326 0 1 0 defined $w{'temp_in'} and not defined $w{'temp'}
2327 1 0 0 defined $w{'humidity_in'} and not defined $w{'humidity'}
2329 0 0 0 defined $w{'wind_speed'} and defined $w{'wind_direction'}
2536 1 1 1 $seen_qconstr and $digi =~ /^([0-9A-F]{32})$/
2596 5 1 23 $poschar >= 48 and $poschar <= 57
1 0 1 $poschar >= 65 and $poschar <= 90
1 0 0 $poschar >= 97 and $poschar <= 106
2604 2 4 17 $retval == 1 and $rethash->{'symbolcode'} ne '_'
2621 0 1 3 $retval == 1 and $rethash->{'symbolcode'} ne '_'
2722 1 0 1 $pos >= 0 and $pos <= 39
2732 0 0 0 $retval == 1 and $rethash->{'symbolcode'} ne '_'
2742 0 0 1 $retval == 1 and $rethash->{'symbolcode'} ne '_'
3370 0 0 0 $speed >= 0 and $course > 0
0 0 0 $speed >= 0 and $course > 0 and $course <= 360
3413 0 0 0 defined $posambiguity and $posambiguity > 0
0 0 0 defined $posambiguity and $posambiguity > 0 and $posambiguity <= 4
3446 0 0 0 defined $posambiguity and $posambiguity > 0
0 0 0 defined $posambiguity and $posambiguity > 0 and $posambiguity <= 4
3474 0 0 0 defined $speed and defined $course
0 0 0 defined $speed and defined $course and $speed >= 0
0 0 0 defined $speed and defined $course and $speed >= 0 and $course >= 0

or 3 conditions

line l !l&&r !l&&!r condition
637 8 1 0 $stamptype eq 'z' or $stamptype eq '/'
644 0 0 3 $hour > 23 or $minute > 59
0 0 3 $hour > 23 or $minute > 59 or $second > 59
677 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
831 0 0 0 $type eq 'C' or $type eq 'E'
852 0 0 0 $type eq 'O' || $type eq 'A' || $type eq 'N' || $type eq 'D' || $type eq 'S' || $type eq 'Q'
956 0 0 1 $1 > 23 or $2 > 59
0 0 1 $1 > 23 or $2 > 59 or $3 > 59
990 0 0 1 $year >= 2038 or $year < 1970
1537 0 0 22 $lat_deg > 89 or $lon_deg > 179
1571 0 0 0 $lat_min =~ / /io or $lon_min =~ / /io
1581 0 0 0 $lat_min =~ / /io or $lon_min =~ / /io
1591 0 0 1 $lat_min =~ / /io or $lon_min =~ / /io
1633 0 0 11 length $packet < 8 or length $dstcallsign != 6
1947 1 0 4 $c1 == -1 or $s1 == -1
2115 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 \.]+)//
2155 0 0 5 $w{'humidity'} > 100 or $w{'humidity'} < 1
2190 5 0 0 defined $w{'temp'} or defined $w{'wind_speed'} and defined $w{'wind_direction'}
2246 0 0 2 $w{'humidity'} > 100 or $w{'humidity'} < 1
2255 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'}
2311 0 0 0 $w{'humidity'} > 100 or $w{'humidity'} < 1
2316 0 0 0 $w{'humidity_in'} > 100 or $w{'humidity_in'} < 1
2329 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'}
2359 0 0 5 $vals[$i] >= 999999 or $vals[$i] <= -999999
2560 6 5 285 ord $packettype == 39 or ord $packettype == 96
13 3 269 $packettype eq '!' or $packettype eq '='
16 7 262 $packettype eq '!' or $packettype eq '=' or $packettype eq '/'
10 6 256 $packettype eq '!' or $packettype eq '=' or $packettype eq '/' or $packettype eq '@'
2576 13 7 9 $packettype eq '!' or $packettype eq '/'
2584 7 6 16 $packettype eq '/' or $packettype eq '@'
2596 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
2840 0 0 0 $addresscount < 14 or $addresscount % 7 != 0
3048 0 0 0 $digicount > 8 or $digicount < 1
3331 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