Branch Coverage

blib/lib/WWW/Scripter/Plugin/JavaScript/JE.pm
Criterion Covered Total %
branch 52 58 89.6


line true false branch
47 52 1144 if $name =~ /^(?:window|self)\z/
49 208 936 if ($type & 2) { }
92 2 8 if (ref($_[0]) =~ /^JE::(?:Null|Undefined)\z/)
109 2 7 if &refaddr(scalar $window->plugin('JavaScript')->back_end($window)) == &refaddr($self)
137 4 4 defined $_[1] ? :
162 4833 6554 if ref $_[0] eq 'HASH'
165 4119 2435 if defined $val
168 0 2435 if @_
175 9 2426 $name =~ /^(?:0|[1-9]\d*)\z/ && $name < 4294967295 ? :
176 17 2418 defined $ret ? :
182 0 3 unless @_
188 1 0 unless defined $next_obj
206 130 3112 if $i->{$_} & 16
207 1456 1786 $i->{$_} & 2 ? :
213 26 15384 if $i->{$_} & 16
214 3640 11770 $i->{$_} & 2 ? :
226 1846 669 exists $i->{'_isa'} ? :
26 2489 exists $i->{'_constructor'} ? :
229 182 2333 if (exists $i->{'_constants'})
238 1040 1475 if (exists $i->{'_isa'} and not exists $$self{$i->{'_isa'}}) { }
243 166 1309 if defined $make_constants
250 1040 124 if (exists $$self{$_->[1]}) { }
252 1024 16 unless $_->[2]
275 1 4 $elem->tag ne 'form' && $elem->can('form') ? :
293 0 0 unless defined $next_obj
302 18 78 if (defined $type) { }
315 1177 1930 unless ($self->SUPER::exists(@_))
320 0 1177 $name =~ /^(?:0|[1-9]\d*)\z/ && $name < 4294967295 ? :
325 14 14 if caller eq 'JE::Destroyer'