Branch Coverage

blib/lib/Lim/RPC/Protocol/REST.pm
Criterion Covered Total %
branch 0 46 0.0


line true false branch
81 0 0 unless (blessed $request and $request->isa('HTTP::Request'))
85 0 0 if ($request->uri =~ m[^/([a-zA-Z]+)/([a-zA-Z_]+)(?:/([^\?]*)){0,1}]ou)
93 0 0 if (defined $server and $server->have_module($module)) { }
96 0 0 if (exists $REST_CRUD{$request->method}) { }
106 0 0 if ($server->have_module_call($module, $call))
111 0 0 if (defined $obj)
112 0 0 if Lim::DEBUG()
114 0 0 if ($request->header('Content-Type') =~ m[(?:^|\s)application/x-www-form-urlencoded(?:$|\s|;)]ou) { }
0 0 elsif ($request->header('Content-Type') =~ m[(?:^|\s)application/json(?:$|\s|;)]ou) { }
124 0 0 if ($@)
136 0 0 if (defined $parameters)
139 0 0 if (defined $redirect_call and $redirect_call)
140 0 0 if Lim::DEBUG()
146 0 0 if (defined $obj)
153 0 0 unless (defined $self)
157 0 0 if (blessed $result and $result->isa('Lim::Error')) { }
0 0 elsif (ref $result eq 'HASH') { }
162 0 0 if ($@) { }
164 0 0 if Lim::WARN()
173 0 0 if (defined $jsonp)
183 0 0 if ($@) { }
185 0 0 if Lim::WARN()
195 0 0 if (defined $jsonp)