Branch Coverage

lib/WWW/Mixi/Scraper/Plugin.pm
Criterion Covered Total %
branch 6 48 12.5


line true false branch
34 0 0 unless (shift())->{'mode'}
41 0 0 unless $res
42 0 0 wantarray && ref $res eq 'ARRAY' ? :
51 0 0 unless ($content)
54 0 0 unless $content
71 0 0 if ($self->_is_valid($key, $query{$key}))
76 0 0 if $self->can('tweak_uri')
90 16 8 if ($rule eq 'is_number')
93 0 0 $value && $value =~ /^\d+$/ ? :
96 2 22 if ($rule eq 'is_number_or_all')
99 0 0 $value && $value =~ /^(?:\d+|all)$/ ? :
102 3 21 if ($rule eq 'is_anything')
118 0 0 if (ref $callback eq 'CODE')
122 0 0 unless $$item{$key}
123 0 0 if ($key =~ /time$/) { }
0 0 elsif ($key =~ /(?:link|envelope|image|background|src|icon)$/) { }
0 0 elsif ($key eq 'images') { }
135 0 0 if %{$_;}
143 0 0 unless ref $item
146 0 0 unless $item
147 0 0 unless $item
156 0 0 if (not ref $item eq 'HASH') { }
165 0 0 if ($link =~ /MM_openBrWindow\(\s*'([^']+)'/)
173 0 0 unless defined $$item{'string'} and defined $$item{'subject'}