File: | blib/lib/TimeZone/TimeZoneDB.pm |
Coverage: | 62.5% |
line | % | coverage | condition | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
121 | 100 |
| Params::Get::get_params(undef, \@_) || {} | ||||||||||||||||||||
140 | 50 |
| $$params{'host'} || 'api.timezonedb.com' | ||||||||||||||||||||
143 | 67 |
| $$params{'cache'} || 'CHI'->new('driver', 'Memory', 'global', 0, 'expires_in', '1 day') | ||||||||||||||||||||
150 | 100 |
| $$params{'min_interval'} || 0 | ||||||||||||||||||||
199 | 75 |
| @_ == 1 and &Scalar::Util::blessed($_[0]) and $_[0]->can("latitude") | ||||||||||||||||||||
218 | 33 |
| defined $latitude and defined $longitude | ||||||||||||||||||||
277 | 25 |
| $rc and defined $$rc{"status"} and $$rc{"status"} ne "OK" |