Branch Coverage

blib/lib/Drought/PET/Thornthwaite.pm
Criterion Covered Total %
branch 24 30 80.0


line true false branch
98 0 11 unless (@_ and @_ >= 5)
109 1 10 if (@_)
112 0 11 unless (&looks_like_number($yday))
114 2 9 unless ($yday >= 1 and $yday <= 366)
115 0 9 unless (&looks_like_number($ndays))
117 2 7 unless ($ndays >= 1)
118 0 7 unless (&looks_like_number($lat))
119 2 5 unless ($lat >= 0 and $lat <= 90)
122 1 3 if (not defined $temperature && defined $tei && &looks_like_number($temperature) && &looks_like_number($tei) or $temperature == $missing_val or $tei == $missing_val or not defined($temperature <=> 0) or not defined($tei <=> 0))
135 1 2 if ($temperature <= 0) { }
1 1 elsif ($temperature > 0 and $temperature < 26.5) { }
179 0 5 unless (@_ and @_ >= 12)
188 3 2 if (@_)
195 4 11 if (not defined $monthly_temperatures[$i] && &looks_like_number($monthly_temperatures[$i]) or $monthly_temperatures[$i] == $missing_val or not defined($monthly_temperatures[$i] <=> 0))
202 11 0 $monthly_temperatures[$i] > 0 ? :