Branch Coverage

blib/lib/Net/API/Gett.pm
Criterion Covered Total %
branch 10 64 15.6


line true false branch
18 0 5 unless require LWP::Protocol::https
87 2 0 unless ($self->has_user)
88 0 0 if ($$args{'refresh_token'} or $$args{'access_token'} or $$args{'api_key'} and $$args{'email'} and $$args{'password'})
182 0 0 unless $self->has_user
187 0 0 unless $self->user->has_access_token
191 0 0 if (defined $offset and looks_like_number $offset)
195 0 0 if (defined $limit and looks_like_number $limit)
201 0 0 if ($response) { }
203 0 0 unless $share_href
232 0 2 unless $sharename =~ /\w+/
236 2 0 if ($response) { }
261 0 0 unless $self->has_user
265 0 0 unless $self->user->has_access_token
268 0 0 if ($title)
273 0 0 if ($response) { }
303 1 0 if ($response) { }
378 0 0 unless ref $opts eq 'HASH'
382 0 0 unless ($sharename)
387 0 0 unless $self->user->has_access_token
396 0 0 unless (exists $$opts{'contents'})
397 0 0 if (exists $$opts{'content'}) { }
405 0 0 if ($response) { }
407 0 0 if ($file->readystate eq 'remote') { }
409 0 0 unless $put_upload_url
410 0 0 if ($file->send_file($put_upload_url, $$opts{'contents'}, $$opts{'encoding'}, $$opts{'chunk_size'})) { }
438 0 16 unless $file_href
442 0 2 if $self->has_user
456 0 17 if (exists $$file_href{'upload'})
462 0 17 if $self->has_user
483 0 2 unless ref($share) =~ /Share/
508 0 0 if (@_)
512 0 0 unless exists $$self{'shares'}