Branch Coverage

blib/lib/MozRepl/RemoteObject.pm
Criterion Covered Total %
branch 6 120 5.0


line true false branch
214 0 0 if (/^(\.+>\s*)+/)
221 0 0 if (/^!!!\s+(.*)$/m)
225 0 0 unless (/\S/)
238 0 0 unless (eval { do { $res = $json->decode($js); 1 } })
247 0 0 if ($err =~ /character offset (\d+)\b/)
251 0 0 if $offset < 0
262 0 0 if (my $events = delete $data->{'events'})
272 0 0 if ($t eq 'list') { }
0 0 elsif ($data->{'type'}) { }
277 0 0 $_->{'type'} ? :
410 1 24 if $repl_class =~ /^((?:\w+::)+\w+)$/
423 25 0 unless (ref $options{'repl'})
425 0 25 if (defined $options{'repl'})
426 0 0 unless $options{'repl'} =~ /^(.*):(\d+)$/
428 0 0 if defined $1
430 0 0 if defined $2
448 0 0 if (my $bufsize = delete $options{'bufsize'})
449 0 0 if ($options{'repl'}->can('client'))
456 24 0 unless ($ok)
457 0 24 if ($options{'launch'}) { }
460 0 0 unless (ref $cmd)
473 0 0 unless (exists $options{'js_JSON'})
496 0 0 if ($have_native eq '')
499 0 0 if (lc $have_native eq '"\\u30bd"' or $have_native eq qq["\343\202\275"]) { }
509 0 0 if ($options{'js_JSON'} ne 'native')
522 0 0 unless lc $utf8 eq '""\\u30bd""'
556 0 0 unless exists $options{'command_sep'}
607 0 0 if (defined wantarray)
610 0 0 if ($self->{'use_queue'}) { }
616 0 0 if (@{$self->{'queue'};} > $self->{'max_queue_size'})
655 0 0 if (defined wantarray)
662 0 0 if (--$self->{'use_queue'} == 0)
665 0 0 /;$/ ? :
678 0 0 if ($self->{'use_queue'} and $self->queue and @{$self->queue;})
714 0 0 unless ($self->{'functions'}{$js})
730 0 0 $_ ? :
747 0 0 unless (exists $self->{'constants'}{$name})
749 0 0 if (ref $self->{'constants'}{$name})
812 0 0 unless ($repl)
817 0 0 /;$/ ? :
823 0 0 if ($queue)
829 0 0 if (defined wantarray) { }
841 0 0 if $i == 25
844 0 0 if ($d->{'status'} eq 'ok') { }
862 0 0 $_[0]{'repl'} ? :
874 0 0 unless $res
892 0 0 unless ($cbid)
895 0 0 if (exists $self->{'callbacks'}{$cbid} and my $cb = $self->{'callbacks'}{$cbid}{'callback'}) { }
1158 0 0 if (2 == @_)
1170 0 0 unless $self->__id
1172 0 0 if ($release_action = $self->__release_action || '')
1180 0 0 if (my $on_destroy = $self->__on_destroy)
1184 0 0 if ($self->bridge) { }
1186 0 0 if ($rn) { }
1196 0 0 if ($MozRepl::RemoteObject::WARN_ON_LEAKS)
1217 0 0 unless my $id = MozRepl::RemoteObject::Methods::id($self)
1245 0 0 unless my $id = MozRepl::RemoteObject::Methods::id($self)
1302 0 0 unless $self
1343 0 0 unless $self
1443 0 0 if ($type eq 'click') { }