Branch Coverage

blib/lib/HTML/RewriteAttributes/Resources.pm
Criterion Covered Total %
branch 18 22 81.8


line true false branch
51 25 14 if ($self->{'rewrite_inline_css_cb'})
52 7 0 if ($tag eq "link" and defined $attr->{'type'} and $attr->{'type'} eq "text/css" and defined $attr->{'href'})
54 7 0 if (defined $content)
57 1 6 if $attr->{'media'}
62 2 0 if ($tag eq "style" and defined $attr->{'type'} and $attr->{'type'} eq "text/css")
72 2 95 if (delete $self->{'rewrite_look_for_style'})
84 9 10 unless $self->{'rewrite_inline_imports'}
95 2 7 defined $2 ? :
16 9 if (defined $1) { }
109 7 0 unless (defined $uri->scheme)
120 4 10 if $self->{'rewrite_inline_imports_seen'}{$path}++