Branch Coverage

blib/lib/Apple/AppStoreConnect.pm
Criterion Covered Total %
branch 41 42 97.6


line true false branch
213 3 4 unless ($args{'key'})
214 1 2 unless $args{'key_file'}
215 1 1 unless open my $fh, "<", $args{'key_file'}
235 10 1 unless ($self->{'curl'})
236 1 9 unless $resp->is_success
240 1 9 $args{'raw'} ? :
247 1 11 unless $args{'url'}
248 4 7 unless $args{'url'} =~ /^http/
253 2 8 unless ($self->{'curl'} or $self->{'ua'})
268 2 4 if $args{'id'}
269 2 4 if $args{'path'}
281 11 4 if not $args{'exp'} and $self->{'jwt_exp'} and $self->{'jwt_exp'} >= time + 300
291 4 1 if ($c =~ /simple.t line (\d+)/)
303 1 4 if $self->{'scope'}
321 1 10 unless $ua
333 11 3 unless ref $args{'params'}
337 2 1 if $params
344 8 2 if (ref $hash and ref $hash->{'data'} and ref $hash->{'data'} eq "ARRAY")
347 6 1 if ($item->{'id'} and $item->{'attributes'})
349 6 0 if $item->{'type'}
352 6 2 if $res