Branch Coverage

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


line true false branch
47 50 1100 if $name =~ /^(?:window|self)\z/
49 200 900 if ($type & 2) { }
92 2 8 if (ref($_[0]) =~ /^JE::(?:Null|Undefined)\z/)
109 2 7 if refaddr($window->plugin('JavaScript')->back_end($window)) == refaddr $self
137 4 4 defined $_[1] ? :
162 4649 6306 if ref $_[0] eq 'HASH'
165 3964 2342 if defined $val
168 0 2342 if @_
172 9 2333 $name =~ /^(?:0|[1-9]\d*)\z/ && $name < 4294967295 ? :
176 17 2325 defined $ret ? :
182 0 3 unless @_
186 1 0 unless defined $next_obj
206 125 2993 if $$i{$_} & 16
207 1400 1718 $$i{$_} & 2 ? :
212 1775 644 exists $$i{'_isa'} ? :
25 2394 exists $$i{'_constructor'} ? :
213 25 14793 if $$i{$_} & 16
214 3500 11318 $$i{$_} & 2 ? :
229 175 2244 if (exists $$i{'_constants'})
238 1585 834 if (exists $$i{'_isa'} and not exists $$self{$$i{'_isa'}}) { }
243 143 691 if defined $make_constants
250 1585 532 if (exists $$self{$$_[1]}) { }
252 1553 32 unless $$_[2]
275 1 4 $elem->tag ne 'form' && $elem->can('form') ? :
291 0 0 unless defined $next_obj
302 18 77 if (defined $type) { }
315 2130 1858 unless ($self->SUPER::exists(@_))
318 0 2130 $name =~ /^(?:0|[1-9]\d*)\z/ && $name < 4294967295 ? :
325 13 13 if caller eq 'JE::Destroyer'