Branch Coverage

blib/lib/Net/Google/Drive/Simple/Core.pm
Criterion Covered Total %
branch 5 52 9.6


line true false branch
31 0 9 if (exists $options{'custom_file'}) { }
53 0 0 if (defined $set)
65 0 0 if ($self->{'init_done'})
70 0 0 unless ($self->api_test)
96 0 0 if ($resp->is_success)
128 0 0 unless ($noinit)
136 0 0 unless ($resp->is_success)
139 0 0 if (--$RETRIES >= 0) { }
166 0 0 if ($post_data)
167 0 0 if (ref $post_data eq 'ARRAY') { }
174 0 0 if ($post_data)
178 0 0 if defined $post_data
191 0 0 if ($resp->is_error)
209 0 0 unless ($self->{'magic'})
223 0 1 unless (defined $data)
231 1 2 unless defined $next_item
233 0 2 if ($next_item->{'labels'}{'trashed'})
248 0 0 unless defined $opts
270 0 0 unless defined $file_id
286 0 0 unless -r $filename and $remaining
290 0 0 unless my $fh = "IO::File"->new($filename, "r")
298 0 0 unless ($fh->opened)
299 0 0 unless $fh = "IO::File"->new($filename, "r")
305 0 0 unless (my $read = $fh->read($buffer, $blksize))
306 0 0 if $! and $remaining
308 0 0 unless $fh->close