blib/lib/File/Dropbox.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 7 | 74 | 9.4 |
line | l | !l | condition |
---|---|---|---|
259 | 0 | 0 | @{$self;}{'closed', 'mode'} = (1, '') and return 0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
130 | 0 | 0 | 0 | not wantarray and $length |
0 | 0 | 0 | not wantarray and $length and defined $/ | |
151 | 0 | 0 | 0 | wantarray and defined $/ |
234 | 0 | 0 | 0 | $offset and $offset != $self->{'offset'} + $self->{'length'} |
306 | 0 | 0 | 0 | $mode eq '<' and not $self->__meta__ |
468 | 0 | 0 | 0 | $code == 500 and $response->content =~ /\A(?:Cannot|Failed)/ |
line | l | !l | condition |
---|---|---|---|
45 | 2 | 11 | $self->{'chunk'} //= 4194304 |
46 | 1 | 12 | $self->{'root'} //= 'sandbox' |
58 | 1 | 11 | $self->{'furlopts'} //= {} |
78 | 0 | 0 | $_[1] //= '' |
0 | 0 | $offset // 0 | |
90 | 0 | 0 | $length || 1 |
101 | 0 | 0 | $_[1] //= '' |
0 | 0 | $offset // 0 | |
241 | 0 | 0 | $self->__flush__ or return 0 |
282 | 0 | 0 | $mode ||= '<' |
358 | 0 | 0 | $self->{'offset'} || 0 |
516 | 0 | 0 | $path || '/' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
43 | 0 | 0 | 13 | ref $_[0] || $_[0] |
121 | 0 | 0 | 0 | $self->{'eof'} or defined $/ |
144 | 0 | 0 | 0 | not $length or $bytes |
236 | 0 | 0 | 0 | $self->{'offset'} //= $offset |
257 | 0 | 0 | 0 | $self->{'length'} or not $self->{'upload_id'} |
285 | 0 | 0 | 0 | $mode eq 'a' or $mode eq 'w' |
287 | 0 | 0 | 0 | $mode eq '<' or $mode eq '>' |
441 | 0 | 0 | 0 | $type eq 'move' or $type eq 'copy' |
468 | 0 | 0 | 0 | $code == 401 or $code == 403 |
516 | 0 | 0 | 0 | open $handle, '<', $path || '/' or $! != 21 |