Branch Coverage

File:blib/lib/Weather/Meteo.pm
Coverage:53.7%

line%coveragebranch
128100TFif (not defined $class) { }
100TFelsif (&Scalar::Util::blessed($class)) { }
139100TFunless (defined $ua)
19550TFif (scalar @_ == 2 and &Scalar::Util::blessed($_[0]) and $_[0]->can('latitude')) { }
2010TFif ($_[0]->can("tz") and $ENV{'TIMEZONEDB_KEY'})
2140TFif (not defined $latitude and defined $location and &Scalar::Util::blessed($location) and $location->can("latitude"))
21950TFunless (defined $latitude and defined $longitude and defined $date)
22050TFif (my $logger = $self->{'logger'})
22850TFif ($latitude =~ /^\./)
23150TFif ($latitude =~ /^\-\.(\d+)$/)
23450TFif ($longitude =~ /^\./)
23750TFif ($longitude =~ /^\-\.(\d+)$/)
24150TFunless ($latitude =~ /^-?\d+(\.\d+)?$/ and $longitude =~ /^-?\d+(\.\d+)?$/)
2420TFif (my $logger = $self->{'logger'})
24850TFif (&Scalar::Util::blessed($date) and $date->can('strftime')) { }
100TFelsif ($date =~ /^(\d{4})-/) { }
251100TFif $1 < 1940
25750TFunless ($date =~ /^\d{4}-\d{2}-\d{2}$/)
2580TFif (my $logger = $self->{'logger'})
28550TFif (my $cached = $self->{'cache'}->get($cache_key))
292100TFif ($elapsed < $self->{'min_interval'})
30150TFif ($res->is_error)
309100TFif ($@)
31450TFif ($rc)
31550TFif ($rc->{'error'})
31950TFif (defined $rc->{'hourly'})
3520TFif (@_)