Branch Coverage

blib/lib/WWW/TV/Episode.pm
Criterion Covered Total %
branch 19 64 29.6


line true false branch
59 0 2 ref $_[0] ? :
63 0 2 if (@_ == 1) { }
2 0 elsif (scalar(@_) % 2 == 0) { }
70 0 2 unless exists $data{'id'}
71 0 2 unless $data{'id'} =~ /^\d+$/ and $data{'id'}
73 1 1 $data{'name'} ? :
108 0 1 unless (exists $$self{'filled'}{'name'})
128 1 0 unless (exists $$self{'filled'}{'summary'})
151 0 0 unless (exists $$self{'filled'}{'season_number'})
169 0 0 unless (exists $$self{'filled'}{'episode_number'})
219 0 0 $formats{$1} ? :
235 0 0 unless (exists $$self{'filled'}{'first_aired'})
257 0 0 unless (exists $$self{'filled'}{'stars'})
287 0 0 unless (exists $$self{'filled'}{'guest_stars'})
318 0 0 unless (exists $$self{'filled'}{'recurring_roles'})
335 0 0 unless my $stars = shift()
339 0 0 unless $star =~ m[(.*?)]
361 0 0 unless (exists $$self{'filled'}{'writers'})
391 0 0 unless (exists $$self{'filled'}{'directors'})
416 6 0 if (ref $self) { }
417 2 4 if (defined $value)
438 8 0 if (ref $self) { }
439 3 5 if (defined $value)
440 2 1 if ($value =~ /^(au|uk|us|www|)$/i) { }
473 0 0 wantarray ? :
485 0 0 unless (exists $$self{'filled'}{'series_id'})
504 0 0 unless (exists $$self{'filled'}{'series'})
505 0 0 if ($self->series_id) { }
540 0 0 unless (defined $$self{'first_aired'})
544 0 0 if $$self{'first_aired'} eq 'n/a'
555 1 0 unless ($$self{'filled'}{'html'})
559 1 0 unless $rc->is_success