Condition Coverage

blib/lib/NOAA/Aurora.pm
Criterion Covered Total %
condition 36 41 87.8


and 3 conditions

line !l l&&!r l&&r condition
243 2 0 6 defined $args{'lat'} and defined $args{'lon'}
260 5 1 2 $args{'format'} and $args{'format'} eq "text"
291 2 0 6 $json and $hash
315 3 7 14 $self->{'cache'} and $self->{'data'}{$key}
7 0 14 $self->{'cache'} and $self->{'data'}{$key} and time - $self->{'data'}{$key}{'ts'} <= $self->{'cache'}
337 2 3 1 $ref_mon and $mon > $ref_mon

or 2 conditions

line l !l condition
202 2 6 $args{'cache'} // 120
203 1 7 $args{'swpc'} || 'services.swpc.noaa.gov'
206 2 6 $args{'date_format'} || ''
216 1 6 $args{'hemisphere'} || ''
246 3 1 $$hash{$args{'lon'}}{$args{'lat'}} || 0
373 1 1 $self->{'td'} || ' '
392 1 2 $self->{'td'} || ' '

or 3 conditions

line l !l&&r !l&&!r condition
216 1 1 6 $args{'hem'} ||= $args{'hemisphere'} || ''
219 2 6 0 $self->_get_cache($h) || $self->_set_cache($h, $self->_get_output($self->_get_ua("$self->{'swpc'}/images/animations/ovation/$h/latest.jpg")))
279 0 1 6 not $kp or $kp < "4.5"