blib/lib/Weather/Meteo.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 4 | 26 | 15.3 |
line | true | false | branch |
---|---|---|---|
54 | 1 | 1 | if (not defined $class) { } |
0 | 1 | elsif (ref $class) { } | |
63 | 2 | 0 | unless (defined $ua) |
89 | 0 | 0 | if (ref $_[0] eq 'HASH') { } |
0 | 0 | elsif (@_ == 2 and ref($_[0]) =~ /::/ and $_[0]->can('latitude')) { } | |
0 | 0 | elsif (ref $_[0]) { } | |
0 | 0 | elsif (@_ % 2 == 0) { } | |
107 | 0 | 0 | unless (defined $latitude) |
130 | 0 | 0 | if ($res->is_error) |
137 | 0 | 0 | if (my $rc = $json->decode($res->decoded_content)) |
138 | 0 | 0 | if ($rc->{'error'}) |
142 | 0 | 0 | if (defined $rc->{'hourly'}) |
171 | 0 | 0 | if (@_) |