Branch Coverage

lib/CallBackery/Controller/RpcService.pm
Criterion Covered Total %
branch 21 60 35.0


line true false branch
64 0 2 unless ($self->req->method eq "POST")
69 0 2 unless (exists $allow{$method})
73 2 0 if /1/u
74 0 0 if $self->user->isUserAuthenticated
75 0 0 if (/3/u)
77 0 0 if ($self->config->instantiatePlugin($plugin, $self->user)->mayAnonymous)
90 3 2 unless $method
94 1 0 if (ref $data eq "ARRAY")
103 1 4 if (my $perMethodCleaner = $self->perMethodCleaner($method))
110 1 3 if (/ARRAY/u)
113 3 1 if (/HASH/u)
116 1 3 if ($key =~ /$match/u) { }
1 2 elsif (ref $value) { }
138 1 1 if ($ENV{'CALLBACKERY_RPC_LOG'}) { }
162 1 1 if ($ENV{'CALLBACKERY_RPC_LOG'}) { }
219 0 0 if (my $ok = XXX) { }
378 0 0 if (my $action = $obj->eventActions->{$event})
415 0 0 unless ($self->{'preDestroyActions'})
434 0 0 unless ($self->user->isUserAuthenticated)
439 0 0 unless ($name)
445 0 0 unless ($upload)
452 0 0 if (my $formData = $self->req->param("formData"))
454 0 0 if ($@)
511 0 0 unless ($self->user->isUserAuthenticated)
518 0 0 unless ($name)
526 0 0 if (my $formData = $self->req->param("formData"))
528 0 0 if ($@)
554 0 0 unless ($self->param("display"))
565 3 0 if (${^GLOBAL_PHASE} ne "DESTRUCT")
569 0 0 if (builtin::blessed($self) and ref $self->log)