Branch Coverage

blib/lib/WebService/GData/YouTube/Feed/Video.pm
Criterion Covered Total %
branch 36 88 40.9


line true false branch
41 0 2 if (ref $feed ne 'HASH')
62 0 0 if (@_ == 1)
71 1 0 if (ref $where eq 'HASH' and not $$this{'_where'}) { }
82 0 1 if ($pos)
85 0 1 ref $this->_location->pos ? :
91 1 2 if ($instance)
110 2 37 if ($instance)
129 0 1 unless ref $denied
132 1 0 if $d->type eq 'country'
144 1 2 if $id
145 0 3 ref $this->_media->videoid ? :
170 1 0 if (@{$this->_media->credit->role('uploader');} > 0)
178 0 2 if (@_ == 1)
179 0 0 unless ($this->_media->category->isa('WebService::GData::Collection'))
198 1 0 if (@{$this->_media->category;} > 0)
205 1 0 if @{$this->links->rel('edit');} > 0
210 0 1 if (@_ == 1)
214 0 1 unless $this->_media->description
219 1 2 if (@_ == 1)
224 0 3 unless $this->_media->title
229 1 2 if (@_ >= 1)
232 0 2 unless $this->_media->keywords
237 0 0 if (@_ == 1)
242 0 0 $this->_media->private ? :
259 1 17 if ($instance)
268 1 2 unless ($this->_access_control)
276 1 2 if (@_ == 2)
280 1 0 if (@$ret > 0) { }
291 1 2 if (@_ == 1)
303 0 0 @{$this->links->rel('edit');} > 0 ? :
311 0 0 if $val
336 0 0 if $id
338 0 0 if ($this->id)
349 0 0 if ($this->video_id) { }
356 0 0 if ($this->upload_mode eq 'DIRECT_UPLOAD') { }
369 0 0 if @_ == 1
377 0 0 if (@_ == 1)
392 0 0 if (@_ == 1)
394 0 0 if $$this{'_UPLOAD_MODE'} ne 'DIRECT_UPLOAD' or $$this{'_UPLOAD_MODE'} ne 'BROWSER_UPLOAD'
398 0 0 unless $$this{'_UPLOAD_MODE'}
410 0 0 if ($this->next_url)
448 0 0 if ($$this{'_request'}->auth)
460 0 0 if ($res->is_success) { }
488 2 1 $ret && $ret->permission eq 'allowed' ? :