blib/lib/Weather/YR/LocationForecast.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 6 | 12 | 50.0 |
line | true | false | branch |
---|---|---|---|
115 | 1 | 0 | if (my $xml_ref = $self->xml_ref) { } |
127 | 84 | 258 | if ($t->{'location'}{'temperature'}) { } |
258 | 0 | elsif (my $p = $t->{'location'}{'precipitation'}) { } | |
130 | 83 | 1 | if (defined $datapoint) |
286 | 0 | 0 | unless (defined $closest_dp) |
293 | 0 | 0 | if ($diff_from_now < abs $closest_dp->from->epoch - $now->epoch) |