| blib/lib/Weather/WeatherKit.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 30 | 36 | 83.3 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 192 | 1 | 1 | 8 | $args{'team_id'} and length $args{'team_id'} == 10 |
| 235 | 1 | 1 | 6 | defined $args{'lat'} and abs $args{'lat'} <= 90 |
| 238 | 1 | 1 | 4 | defined $args{'lon'} and abs $args{'lon'} <= 180 |
| 260 | 1 | 4 | 4 | not $args{'exp'} and $self->{'jwt_exp'} |
| 4 | 0 | 4 | not $args{'exp'} and $self->{'jwt_exp'} and $self->{'jwt_exp'} >= time + 600 |
| line | l | !l | condition |
|---|---|---|---|
| 204 | 1 | 3 | $args{'language'} || 'en_US' |
| 205 | 1 | 3 | $args{'timeout'} || 30 |
| 206 | 1 | 3 | $args{'expiration'} || 7200 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 196 | 13 | 2 | 0 | $args{$_} || croak("$_ required.") |
| 232 | 1 | 7 | 0 | $args{'language'} ||= $self->{'language'} |
| 243 | 0 | 1 | 2 | $self->{'curl'} or $self->{'ua'} |
| 262 | 1 | 4 | 0 | $args{'iat'} ||= time |
| 263 | 1 | 4 | 0 | $args{'exp'} || time + $self->{'expiration'} |