Condition Coverage

blib/lib/Geo/WeatherNWS.pm
Criterion Covered Total %
condition 70 122 57.3


and 3 conditions

line !l l&&!r l&&r condition
63 21 0 136 defined $float and $float ne ''
79 10 0 8 defined $fahrenheit and $fahrenheit ne ''
89 1 0 17 defined $celsius and $celsius ne ''
111 0 0 9 defined $F and $F ne ''
0 0 9 defined $F and $F ne '' and defined $wind_speed_mph
0 0 9 defined $F and $F ne '' and defined $wind_speed_mph and $wind_speed_mph ne ''
119 8 1 0 $F <= 50 and $wind_speed_mph > 3
139 0 0 9 defined $F and $F ne ''
0 1 8 defined $F and $F ne '' and defined $rh
1 0 8 defined $F and $F ne '' and defined $rh and $rh ne ''
162 0 0 20 defined $knots and $knots ne ''
176 0 0 20 defined $knots and $knots ne ''
190 0 0 9 defined $miles and $miles ne ''
544 113 0 10 $column == 1 and $Line =~ m[^\d{4}/\d{2}/\d{2}$]
548 113 0 10 $column == 2 and $Line =~ /^\d{2}:\d{2}$/
556 81 32 10 $Line =~ /^([A-Z][A-Z0-9]{3})/ and not $have_icao_code
606 7 0 0 $Winddir <= 67.5 and $Winddir >= 22.5
7 0 0 $Winddir <= 112.5 and $Winddir >= 67.5
7 0 0 $Winddir <= 157.5 and $Winddir >= 112.5
7 0 0 $Winddir <= 202.5 and $Winddir >= 157.5
1 0 6 $Winddir <= 247.5 and $Winddir >= 202.5
1 0 0 $Winddir <= 292.5 and $Winddir >= 247.5
0 0 1 $Winddir <= 337.5 and $Winddir >= 292.5
682 0 0 7 defined $Denominator and $Denominator ne ''
775 1 8 0 defined $Dewpoint and $Dewpoint =~ /M/
918 1 8 0 $Remark and $Remark >= 800

or 2 conditions

line l !l condition
328 1 9 ref $Proto || $Proto || 'Geo::WeatherNWS'

or 3 conditions

line l !l&&r !l&&!r condition
556 7 0 77 $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])*/
7 0 77 $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 77 $Line =~ /^(VV[0-9])/ or $Line =~ /^(SKC[0-9])/
0 0 77 $Line =~ /^(VV[0-9])/ or $Line =~ /^(SKC[0-9])/ or $Line =~ /^(CLR)/
0 3 74 $Line =~ /^(VV[0-9])/ or $Line =~ /^(SKC[0-9])/ or $Line =~ /^(CLR)/ or $Line =~ /^(FEW)/
3 2 72 $Line =~ /^(VV[0-9])/ or $Line =~ /^(SKC[0-9])/ or $Line =~ /^(CLR)/ or $Line =~ /^(FEW)/ or $Line =~ /^(SCT[0-9])/
5 2 70 $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])/
4 6 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])/ or $Line =~ /^(OVC[0-9])/
8 1 55 $Line =~ m[^([0-9][0-9]/[0-9][0-9])] or $Line =~ m[^(M[0-9][0-9]/)]
9 0 55 $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 55 $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])]
606 3 0 7 $Winddir <= 22.5 or $Winddir >= 337.5
639 0 0 6 not defined $Windgustkts or $Windgustkts eq ''
914 0 1 8 not defined $Remark or $Remark eq ''