Branch Coverage

blib/lib/Apple/AppStoreConnect.pm
Criterion Covered Total %
branch 39 40 97.5


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
300 1 4 if $self->{'scope'}
317 1 10 unless $ua
329 11 3 unless ref $args{'params'}
333 2 1 if $params
340 8 2 if (ref $hash and ref $hash->{'data'} and ref $hash->{'data'} eq "ARRAY")
343 6 1 if ($item->{'id'} and $item->{'attributes'})
345 6 0 if $item->{'type'}
348 6 2 if $res