Branch Coverage

blib/lib/MojoMojo/Formatter/Defang.pm
Criterion Covered Total %
branch 30 38 78.9


line true false branch
43 2 28 if $lc_tag eq 'embed'
44 2 26 if $lc_tag eq 'object'
45 6 20 if $lc_tag eq 'param'
46 0 20 if $lc_tag eq 'pre'
66 4 120 if $$attr_val_r =~ /^javascript/i
68 3 117 if $$attr_val_r =~ m[^//]i
71 0 117 if $$attr_val_r =~ /youporn.com/i
93 0 6 if $value =~ /!important/
96 0 6 if $key =~ /position/ and $value =~ /fixed/
115 16 45 if ($lc_attr_key eq 'src')
121 7 9 if (defined $c)
123 0 7 if (exists $c->stash->{'allowed_src_regexes'}) { }
129 7 0 ref $allowed_src ? :
130 7 0 if $allowed_src[0]
137 1 18 if ($$attr_val_r =~ /$allowed_src_regex/)
146 4 11 if (defined $c and defined $src_uri_object->authority) { }
5 6 elsif (defined $src_uri_object->authority) { }
3 3 elsif ($$attr_val_r =~ /javascript/i) { }
147 0 4 if ($c->request->uri->authority eq $src_uri_object->authority) { }