Branch Coverage

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


line true false branch
222 3 4 unless ($args{'key'})
223 1 2 unless $args{'key_file'}
224 1 1 unless open my $fh, "<", $args{'key_file'}
242 10 1 unless ($self->{'curl'})
243 1 9 unless $resp->is_success
247 1 9 $args{'raw'} ? :
254 1 11 unless $args{'url'}
255 4 7 unless $args{'url'} =~ /^http/
260 2 8 unless ($self->{'curl'} or $self->{'ua'})
275 2 4 if $args{'id'}
276 2 4 if $args{'path'}
288 9 4 if not $args{'exp'} and $self->{'jwt_exp'} and $self->{'jwt_exp'} >= time + 300
307 1 4 if $self->{'scope'}
311 1 4 if $self->{'jwt_payload'}
329 1 10 unless $ua
341 11 3 unless ref $args{'params'}
345 2 1 if $params
352 8 2 if (ref $hash and ref $hash->{'data'} and ref $hash->{'data'} eq "ARRAY")
355 6 1 if ($item->{'id'} and $item->{'attributes'})
357 6 0 if $item->{'type'}
360 6 2 if $res