line |
true |
false |
branch |
40
|
1 |
4 |
if $_ eq 'config'
|
61
|
3 |
11 |
$arguments->{'code_wrapper'} ? :
|
67
|
1 |
29 |
if (request()->body and request()->content_type ne 'application/json')
|
81
|
1 |
10 |
if ($allow_origin and $has_origin and not $allowed_origin)
|
102
|
5 |
23 |
$is_preflight ? :
|
111
|
14 |
46 |
if ($allow_origin and $is_preflight) { }
|
117
|
28 |
32 |
if $hm ne $check_for_method
|
121
|
26 |
6 |
if ($method_name =~ /^$route_match$/)
|
128
|
2 |
26 |
unless ($found_match)
|
129
|
1 |
1 |
if ($allow_origin and $is_preflight)
|
142
|
9 |
17 |
if ($allow_origin and $has_origin)
|
143
|
9 |
0 |
$allow_origin eq '*' ? :
|
147
|
4 |
22 |
if ($is_preflight)
|
150
|
0 |
4 |
if request()->header('Access-Control-Request-Headers')
|
161
|
6 |
16 |
request()->body ? :
|
176
|
6 |
16 |
$callback ? :
|
182
|
1 |
21 |
if (my $error = $@) { }
|
|
1 |
20 |
elsif (not &blessed($continue) && $continue->isa('Dancer::RPCPlugin::CallbackResult')) { }
|
|
1 |
19 |
elsif (&blessed($continue) and not $continue->success) { }
|
215
|
3 |
16 |
if (my $error = $@)
|
216
|
1 |
2 |
&blessed($error) && $error->can('as_restish_error') ? :
|
225
|
1 |
18 |
if (&blessed($response) and $response->can('as_restish_error')) { }
|
|
1 |
17 |
elsif (&blessed($response)) { }
|
290
|
3 |
7 |
if (@_ == 1)
|