Condition Coverage

blib/lib/Geo/WeatherNWS.pm
Criterion Covered Total %
condition 74 125 59.2


and 3 conditions

line !l l&&!r l&&r condition
69 1 35 127 defined $float and $float ne ""
85 1 16 5 defined $fahrenheit and $fahrenheit ne ""
95 1 1 20 defined $celsius and $celsius ne ""
117 0 1 14 defined $F and defined $wind_speed_mph
1 0 14 defined $F and defined $wind_speed_mph and $F ne ""
1 0 14 defined $F and defined $wind_speed_mph and $F ne "" and $wind_speed_mph ne ""
129 9 1 4 $F <= 50 and $wind_speed_mph > 3
148 0 0 12 defined $F and $F ne ""
0 9 3 defined $F and $F ne "" and $F >= 80
9 0 3 defined $F and $F ne "" and $F >= 80 and defined $rh
9 0 3 defined $F and $F ne "" and $F >= 80 and defined $rh and $rh ne ""
175 0 0 20 defined $knots and $knots ne ""
189 0 0 19 defined $knots and $knots ne ""
203 0 0 8 defined $miles and $miles ne ""
465 0 0 0 $Self->{'http'} and $Self->{'http'} ne ""
624 101 0 9 $column == 1 and $Line =~ m[^\d{4}/\d{2}/\d{2}$]
628 101 0 9 $column == 2 and $Line =~ /^\d{2}:\d{2}$/
636 72 29 9 $Line =~ /^([A-Z][A-Z0-9]{3})/ and not $have_icao_code
687 7 0 0 $Winddir <= "67.5" and $Winddir >= "22.5"
6 0 1 $Winddir <= "112.5" and $Winddir >= "67.5"
6 0 0 $Winddir <= "157.5" and $Winddir >= "112.5"
6 0 0 $Winddir <= "202.5" and $Winddir >= "157.5"
0 0 6 $Winddir <= "247.5" and $Winddir >= "202.5"
0 0 0 $Winddir <= "292.5" and $Winddir >= "247.5"
0 0 0 $Winddir <= "337.5" and $Winddir >= "292.5"
865 0 1 8 defined $Dewpoint and $Dewpoint ne ""
997 0 7 0 $Remark and $Remark >= 800
1069 9 0 0 $Templatefile and $Templatefile ne ""

or 2 conditions

line l !l condition
365 1 9 ref $Proto || $Proto || __PACKAGE__

or 3 conditions

line l !l&&r !l&&!r condition
636 6 0 70 $Line =~ / (BR|TS|MI|PR|BC|DR|BL|SH|FZ|DZ|RA|SN|SG|IC|PE|PL|GR|GS|UP|FG|FU|VA|DU|SA|HZ|PY|PO|SQ|FC|SS) ([A-Z])* /x or $Line =~ /^VC([A-Z])*/
6 0 70 $Line =~ / (BR|TS|MI|PR|BC|DR|BL|SH|FZ|DZ|RA|SN|SG|IC|PE|PL|GR|GS|UP|FG|FU|VA|DU|SA|HZ|PY|PO|SQ|FC|SS) ([A-Z])* /x or $Line =~ /^VC([A-Z])*/ or $Line =~ /[\+\-]VC([A-Z])*/
0 0 70 $Line =~ /^(VV[0-9])/ or $Line =~ /^(SKC[0-9])/
0 0 70 $Line =~ /^(VV[0-9])/ or $Line =~ /^(SKC[0-9])/ or $Line =~ /^(CLR)/
0 3 67 $Line =~ /^(VV[0-9])/ or $Line =~ /^(SKC[0-9])/ or $Line =~ /^(CLR)/ or $Line =~ /^(FEW)/
3 2 65 $Line =~ /^(VV[0-9])/ or $Line =~ /^(SKC[0-9])/ or $Line =~ /^(CLR)/ or $Line =~ /^(FEW)/ or $Line =~ /^(SCT[0-9])/
5 1 64 $Line =~ /^(VV[0-9])/ or $Line =~ /^(SKC[0-9])/ or $Line =~ /^(CLR)/ or $Line =~ /^(FEW)/ or $Line =~ /^(SCT[0-9])/ or $Line =~ /^(BKN[0-9])/
3 6 58 $Line =~ /^(VV[0-9])/ or $Line =~ /^(SKC[0-9])/ or $Line =~ /^(CLR)/ or $Line =~ /^(FEW)/ or $Line =~ /^(SCT[0-9])/ or $Line =~ /^(BKN[0-9])/ or $Line =~ /^(OVC[0-9])/
8 1 49 $Line =~ m[^([0-9][0-9]/[0-9][0-9])] or $Line =~ m[^(M[0-9][0-9]/)]
9 0 49 $Line =~ m[^([0-9][0-9]/[0-9][0-9])] or $Line =~ m[^(M[0-9][0-9]/)] or $Line =~ m[^(M[0-9][0-9]/M[0-9][0-9])]
1 0 49 $Line =~ m[^([0-9][0-9]/[0-9][0-9])] or $Line =~ m[^(M[0-9][0-9]/)] or $Line =~ m[^(M[0-9][0-9]/M[0-9][0-9])] or $Line =~ m[^([0-9][0-9]/M[0-9][0-9])]
687 2 0 7 $Winddir <= "22.5" or $Winddir >= "337.5"
993 0 0 7 not defined $Remark or $Remark eq ""