Branch Coverage

blib/lib/HTML/MobileJpCSS.pm
Criterion Covered Total %
branch 42 64 65.6


line true false branch
57 0 6 if $$self{'agent'}->is_non_mobile
58 0 6 if $$self{'agent'}->is_ezweb and not map({$$self{$_};} 'inliner_ezweb', 'css_file', 'css')
65 4 0 if (/href="(.+?)"/)
70 4 2 if @link
72 2 4 if $$self{'css_file'}
73 1 5 if $$self{'css'}
78 6 37 if (/^a:(?:link|focus|visited)$/) { }
0 37 elsif (/^(\#(.+))/) { }
31 6 elsif (/^(\.(.+))/) { }
80 0 6 $$style{'pseudo'}{$_} ? :
85 0 0 $$style{'id'}{$2} ? :
90 1 30 $$style{'class'}{$2} ? :
95 0 6 $$style{'tag'}{$_} ? :
102 6 0 if ($$style{'pseudo'})
104 4 2 $$self{'agent'}->is_docomo ? :
137 4 2 if ($$self{'agent'}->is_docomo)
146 6 0 if ($$self{'agent'}) { }
147 0 6 unless ref($$self{'agent'}) =~ /^HTTP::MobileAgent/
157 4 0 if (not $href =~ m[^https?://]) { }
170 0 6 if ($css = $CSS{$path})
171 0 0 if ($$css{'mtime'} >= (stat $path)[9])
175 0 6 unless $css = 'CSS::Tiny'->read($path)
177 0 6 unless $css
190 0 0 if ($res->is_success)
191 0 0 unless my $css = 'CSS::Tiny'->read_string($res->content)
206 1 30 if ($node =~ /style=".+?"/) { }
219 6 35 unless $$StyleMap{$tagname}
220 9 26 unless $$StyleMap{$tagname}{$property}
225 14 12 if (ref $style eq 'ARRAY') { }
12 0 elsif ($style) { }
227 11 3 if $prop
231 10 2 if $prop