Condition Coverage

blib/lib/Weather/Meteo.pm
Criterion Covered Total %
condition 17 39 43.5


and 3 conditions

line !l l&&!r l&&r condition
181 1 0 0 scalar @_ == 2 and builtin::blessed($_[0])
1 0 0 scalar @_ == 2 and builtin::blessed($_[0]) and $_[0]->can("latitude")
189 0 0 0 $_[0]->can("tz") and $ENV{'TIMEZONEDB_KEY'}
205 6 2 0 not defined $latitude and defined $location
8 0 0 not defined $latitude and defined $location and builtin::blessed($location)
2 0 0 not defined $latitude and defined $location and builtin::blessed($location) and $location->can("latitude")
210 2 0 6 defined $latitude and defined $longitude
0 0 6 defined $latitude and defined $longitude and defined $date
229 0 0 6 $latitude =~ /^-?\d+(\.\d+)?$/ and $longitude =~ /^-?\d+(\.\d+)?$/
233 6 0 0 builtin::blessed($date) and $date->can("strftime")

or 2 conditions

line l !l condition
129 0 8 $args{'host'} || 'archive-api.open-meteo.com'
139 1 7 $args{'min_interval'} || 0
203 0 8 $param{'tz'} || 'Europe/London'

or 3 conditions

line l !l&&r !l&&!r condition
132 1 7 0 $args{'cache'} || 'CHI'->new('driver', 'Memory', 'global', 1, 'expires_in', '1 day')