Branch Coverage

blib/lib/WWW/Yahoo/Movies.pm
Criterion Covered Total %
branch 11 80 13.7


line true false branch
81 7 108 exists $params{$attr} ? :
85 0 5 if ($self->proxy) { }
92 0 0 if $self->error
100 0 5 if not $self->id =~ /^\d+$/ and $self->_search
102 3 2 $self->id =~ /^\d+$/ && length $self->id > 4 ? :
106 0 0 unless ($self->id =~ /^\d+$/ and length $self->id > 4)
115 0 0 if ($self->_page =~ /no\s+matches\s+were\s+found/i)
126 0 0 if $text =~ /top\s+matching\s+movie\s+titles/i
133 0 0 if ($$tag[0] eq 'a' and $$tag[1]{'href'} =~ m[/(\d+)/info])
139 0 0 if $$tag[0] eq '/table'
142 0 0 if ($self->matched) { }
154 0 0 if (@_)
164 0 5 if (@_)
170 0 5 if (@_)
176 0 5 if (@_)
193 0 0 if ($self->cover)
202 0 0 if ($_[0] and ref $_[0] eq 'ARRAY')
204 0 0 wantarray ? :
210 0 0 if $$self{'people'}
216 0 0 if $$self{'people'}
222 0 0 if $$self{'people'}
246 0 0 if (/^Genres/)
250 0 0 if (/^Running Time/)
254 0 0 if (/^Release Date/)
260 0 0 if (/^MPAA Rating/)
265 0 0 if (/^Distributor/)
279 0 0 if ($$tag[1]{'alt'} and $$tag[1]{'alt'} =~ /^$$self{'title'}/i)
291 0 0 if ($$tag[1]{'href'} =~ /videoWin/i)
303 0 0 if ($$tag[0] eq 'C')
304 0 0 if $$tag[1] =~ /another vertical spacer/
316 0 0 if ($time_str)
332 0 0 if $$tag[0] eq 'C' and $$tag[1] =~ /cast and credits/
337 0 0 if ($$tag[1] eq 'font')
340 0 0 if ($text eq 'Starring:') { }
0 0 elsif ($text eq 'Directed by:') { }
0 0 elsif ($text eq 'Produced by:') { }
345 0 0 if ($$tag[0] eq 'S' and $$tag[1] eq 'a')
346 0 0 if ($$tag[2]{'href'} =~ m[movie/contributor/(\d+)] and $key)
357 30 0 if (exists $WWW::Yahoo::Movies::FIELDS{$attr}) { }
358 0 30 if @_