Condition Coverage

blib/lib/Weather/OWM.pm
Criterion Covered Total %
condition 57 59 96.6


and 3 conditions

line !l l&&!r l&&r condition
668 6 3 5 $args{'product'} and $args{'product'} ne "historical"
9 4 1 $args{'product'} and $args{'product'} ne "historical" and $args{'product'} ne "daily"
735 6 1 3 $args{'product'} eq "hourly" and not $args{'end'}
7 2 1 $args{'product'} eq "hourly" and not $args{'end'} and not $args{'cnt'}
750 8 1 1 defined $args{'lat'} and defined $args{'lon'}
792 1 1 20 $args{'lang'} and $args{'lang'} eq "en"
819 6 1 6 defined $args->{'lat'} and defined $args->{'lon'}
881 6 0 1 defined $args{'lat'} and defined $args{'lon'}

or 2 conditions

line l !l condition
716 8 3 $args{'product'} ||= "hourly"
805 2 38 $args{'mode'} || 'json'
829 7 1 delete $args{'product'} || 'current'
869 2 2 delete $args{'product'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
665 5 1 8 not $args{'product'} or $args{'product'} eq "forecast"
707 1 3 4 $args{'q'} or $args{'zip'}
3 1 3 $args{'q'} or $args{'zip'} or $args{'city_id'}
719 3 1 7 $args{'q'} or $args{'zip'}
1 4 3 $args{'q'} or $args{'zip'} or $args{'city_id'}
754 5 1 3 $args{'city'} or $args{'zip'}
789 14 8 21 $api eq "one_call" or $api eq "weather"
790 8 36 0 $args{$_} //= $self->{$_}
838 2 1 5 $prod eq "hourly" or $prod eq "climate"