| line | % | coverage | condition |
| 200 | 100 | | Params::Get::get_params(undef, \@_) || {} |
| 208 | 33 | | &Scalar::Util::blessed($params->{'ua'}) && $params->{'ua'}->can('get') |
| 236 | 67 | | $params->{'cache'} || 'CHI'->new('driver', 'Memory', 'global', 1, 'expires_in', '1 hour') |
| 247 | 100 | | $params->{'host'} || 'archive-api.open-meteo.com' |
| 100 | | $params->{'min_interval'} || 0 |
| 364 | 100 | | scalar @_ == 2 and &Scalar::Util::blessed($_[0]) and $_[0]->can("latitude") |
| 373 | 100 | | $_[0]->can("tz") and $ENV{'TIMEZONEDB_KEY'} |
| 382 | 100 | | $params->{'tz'} || 'Europe/London' |
| 384 | 100 | | A | B | C | D | dec |
|---|
| 0 | X | X | X | 0 | | 1 | 0 | X | X | 0 | | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 |
| not defined $latitude and defined $location and &Scalar::Util::blessed($location) and $location->can("latitude") |
| 390 | 100 | | defined $latitude and defined $longitude and defined $date |
| 403 | 100 | | defined $lat_clean and defined $lon_clean |
| 411 | 67 | | &Scalar::Util::blessed($date) and $date->can("strftime") |
| 448 | 100 | | defined $rc and ref $rc eq "HASH" |
| 452 | 100 | | $rc->{'reason'} // "unknown" |
| 566 | 50 | | scalar @_ >= 1 and &Scalar::Util::blessed($_[0]) and $_[0]->can("latitude") |
| 575 | 33 | | $location->can("tz") and $ENV{'TIMEZONEDB_KEY'} |
| 583 | 100 | | $params->{'days'} // 7 |
| 584 | 50 | | $params->{'tz'} || 'Europe/London' |
| 586 | 40 | | A | B | C | D | dec |
|---|
| 0 | X | X | X | 0 | | 1 | 0 | X | X | 0 | | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 |
| not defined $latitude and defined $location and &Scalar::Util::blessed($location) and $location->can("latitude") |
| 592 | 100 | | defined $latitude and defined $longitude |
| 603 | 67 | | defined $lat_clean and defined $lon_clean |
| 611 | 50 | | not $days =~ /^\d+$/ or $days < 1 or $days > 16 |
| 636 | 33 | | defined $rc and ref $rc eq "HASH" |
| 756 | 50 | | scalar @_ >= 1 and &Scalar::Util::blessed($_[0]) and $_[0]->can("latitude") |
| 765 | 33 | | $location->can("tz") and $ENV{'TIMEZONEDB_KEY'} |
| 773 | 50 | | $params->{'tz'} || 'Europe/London' |
| 775 | 40 | | A | B | C | D | dec |
|---|
| 0 | X | X | X | 0 | | 1 | 0 | X | X | 0 | | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 |
| not defined $latitude and defined $location and &Scalar::Util::blessed($location) and $location->can("latitude") |
| 781 | 67 | | defined $latitude and defined $longitude |
| 792 | 33 | | defined $lat_clean and defined $lon_clean |
| 804 | 25 | | defined $date and &Scalar::Util::blessed($date) and $date->can("strftime") |
| 808 | 67 | | defined $date and not $date =~ /^\d{4}-\d{2}-\d{2}$/ |
| 814 | 33 | | !defined($date) || $date ge $today |
| 815 | 33 | | $date //= $today |
| 836 | 25 | | defined $rc and ref $rc eq "HASH" and not $rc->{'error'} |
| 843 | 33 | | defined $sr and defined $ss |
| 978 | 100 | | defined $res and ref $res and $res->can("is_error") |