Branch Coverage

lib/CallBackery/Controller/RpcService.pm
Criterion Covered Total %
branch 20 58 34.4


line true false branch
65 0 2 unless ($self->req->method eq "POST")
70 0 2 unless (exists $allow{$method})
74 2 0 if /1/u
75 0 0 if $self->user->isUserAuthenticated
76 0 0 if (/3/u)
78 0 0 if ($self->config->instantiatePlugin($plugin, $self->user)->mayAnonymous)
91 3 2 unless $method
95 1 0 if (ref $data eq "ARRAY")
104 1 4 if (my $perMethodCleaner = $self->perMethodCleaner($method))
111 1 3 if (/ARRAY/u)
114 3 1 if (/HASH/u)
117 1 3 if ($key =~ /$match/u) { }
1 2 elsif (ref $value) { }
139 1 1 if ($ENV{'CALLBACKERY_RPC_LOG'}) { }
163 1 1 if ($ENV{'CALLBACKERY_RPC_LOG'}) { }
220 0 0 if (my $ok = XXX) { }
326 0 0 unless $obj
368 0 0 if (my $action = $obj->eventActions->{$event})
405 0 0 unless ($self->{'preDestroyActions'})
424 0 0 unless ($self->user->isUserAuthenticated)
429 0 0 unless ($name)
435 0 0 unless ($upload)
442 0 0 if (my $formData = $self->req->param("formData"))
444 0 0 if ($@)
501 0 0 unless ($self->user->isUserAuthenticated)
508 0 0 unless ($name)
516 0 0 if (my $formData = $self->req->param("formData"))
518 0 0 if ($@)
544 0 0 unless ($self->param("display"))