Branch Coverage

lib/URL/Transform/using/HTML/Parser.pm
Criterion Covered Total %
branch 30 38 78.9


line true false branch
94 0 5 unless ref $output_function eq 'CODE'
97 0 5 unless ref $transform_function eq 'CODE'
120 47 0 if ($self->parser_for->('application/x-javascript') eq 'Remove')
121 4 43 if $text =~ m[^
132 3 92 if ($$_link_tags{$current_tag} and $$_link_tags{$current_tag}{''})
150 47 9 unless $text =~ m[/\s?>$]
154 4 52 if ($tagname eq 'noscript' and $self->parser_for->('application/x-javascript') eq 'Remove')
170 9 35 unless $v_offset
179 12 7 unless $link_tags and $$link_tags{$attrname} or $$_link_tags{''}{$attrname}
199 1 22 if $new_v eq $v
233 26 0 if ($tag_name)
236 3 23 if ($tag_name eq 'meta') { }
5 18 elsif (not $attribute_name and $tag_name eq 'style' or $attribute_name and $attribute_name eq 'style') { }
5 13 elsif (not $attribute_name and $tag_name eq 'script' or $attribute_name and exists $$_js_attributes{$attribute_name}) { }
238 0 3 unless defined $parser
252 0 5 unless defined $parser
266 0 5 unless defined $parser
269 13 13 if (defined $parser)
273 0 13 if $URL::Transform::using::HTML::Parser::EVAL_ERROR