Branch Coverage

blib/lib/WebService/Box/File.pm
Criterion Covered Total %
branch 9 20 45.0


line true false branch
104 1 4 unless ($self->id)
114 0 4 unless (my(%file_data) = $self->request->do('ressource', 'files', 'action', 'get', 'id', $self->id))
118 0 4 if ($parent_object and $parent_object->id == $_[0]->parent_data->{'id'})
130 2 0 unless ($data)
131 1 1 unless ($self->id)
139 1 0 unless ($self->_parent_object)
155 0 0 ref $parent ? :
157 0 0 unless (-e $path)
169 0 0 unless (my(%upload_data) = $self->request->do('ressource', 'files', 'action', 'upload', 'file', {'filename', $path, 'content', $content}, 'parent_id', $parent_id))
187 0 14 if @args % 2 == 1