Branch Coverage

lib/WebService/OpenSky.pm
Criterion Covered Total %
branch 44 68 64.7


line true false branch
176 0 4 if @_ < 3
0 4 if @_ > 3
177 1 3 if ($begin >= $end)
180 1 2 if ($end - $begin > 7200)
192 0 4 if @_ < 4
0 4 if @_ > 4
193 1 3 if ($begin >= $end)
196 1 2 if ($end - $begin > 2592000)
208 0 4 if @_ < 4
0 4 if @_ > 4
209 1 3 if ($begin >= $end)
212 1 2 if ($end - $begin > 604800)
224 0 4 if @_ < 4
0 4 if @_ > 4
225 1 3 if ($begin >= $end)
228 1 2 if ($end - $begin > 604800)
240 0 2 if @_ < 3
0 2 if @_ > 3
241 0 2 if ($time != 0 and time - $time > 2592000)
322 0 14 if @_ < 2
0 14 if @_ > 2
335 8 6 unless my $delay = $rate_limits->{$method}
342 3 3 unless defined $limit
344 0 3 if $limit <= 0
348 0 3 if (not $self->_password and $delay->{'noauth'}) { }
354 2 1 $delay_remaining > 0 ? :
363 0 13 if @_ < 2
0 13 if @_ > 2
364 13 0 unless $self->debug
368 0 14 if @_ < 2
0 14 if @_ > 4
0 0 if @_ < 2
0 14 if (@_ < 3)
371 0 14 if (not $username && $password and $no_auth_required)