Branch Coverage

blib/lib/WWW/Mechanize/Plugin/DOM.pm
Criterion Covered Total %
branch 0 66 0.0


line true false branch
46 0 0 unless $mech->is_html
49 0 0 defined $$self{'charset'} ? :
57 0 0 unless $mech->is_html
60 0 0 defined $$self{'charset'} ? :
111 0 0 if (%{$$self{'script_handlers'};} or %{$$self{'event_attr_handlers'};})
117 0 0 unless lc $elem->attr('http-equiv') eq 'content-script-type'
120 0 0 unless defined $script_type
122 0 0 if (%{$$self{'script_handlers'};})
124 0 0 unless $$self{'s'}
128 0 0 unless defined $lang
130 0 0 unless defined $lang
134 0 0 if ($uri = $elem->attr('src')) { }
137 0 0 if $base
140 0 0 unless $res->is_success
170 0 0 if (defined $lang)
173 0 0 if $lang_re eq 'default'
178 0 0 if $lang =~ /$lang_re/
181 0 0 unless $$self{'script_handlers'}{'default'}
188 0 0 unless $$self{'s'}
195 0 0 if (%{$$self{'event_attr_handlers'};})
197 0 0 unless $$self{'s'}
200 0 0 unless defined $lang
203 0 0 defined $offset ? :
208 0 0 if (defined $lang)
211 0 0 if $lang_re eq 'default'
217 0 0 if $lang =~ /$lang_re/
220 0 0 unless $$self{'event_attr_handlers'}{'default'}
232 0 0 if $$self{'s'} and %{$$self{'script_handlers'};}
252 0 0 unless defined(my $src = $elem->src)
264 0 0 defined $cs ? :
293 0 0 if ($_ eq 'script_handlers') { }
0 0 elsif ($_ eq 'event_attr_handlers') { }
330 0 0 if (@_)