| line |
true |
false |
branch |
|
131
|
12 |
28 |
if (@$rules > 0) { } |
|
132
|
8 |
4 |
if exists $options{'stack'}[-1]{'validation_rules'}{$options{'action'}} |
|
166
|
12 |
43 |
$options{'action'} =~ /^(index|create)$/ && $$_{'resname'} eq $resname ? : |
|
179
|
24 |
40 |
if (defined $rules) |
|
182
|
3 |
21 |
unless captures() |
|
191
|
6 |
18 |
unless ($result->success) |
|
204
|
10 |
48 |
unless captures() |
|
208
|
14 |
64 |
if (exists $cap{$name . $SUFFIX} and ref $fnid eq 'CODE') { } |
|
|
4 |
60 |
elsif (ref $fn eq 'CODE') { } |
|
222
|
1 |
57 |
if (@ret and defined $ret[0] and ref $ret[0] eq '' and $ret[0] =~ /^\d{3}$/) { } |
|
|
55 |
2 |
elsif (status() eq '200') { } |
|
228
|
1 |
0 |
if ($ret[0] >= 400) { } |
|
243
|
10 |
45 |
if ($options{'action'} eq 'create') { } |
|
|
7 |
38 |
elsif ($options{'action'} eq 'update') { } |
|
|
7 |
31 |
elsif ($options{'action'} eq 'delete') { } |
|
249
|
0 |
57 |
wantarray ? : |
|
259
|
0 |
7 |
defined $app->app_prefix ? : |
|
262
|
0 |
7 |
if ($app->on_lexical_prefix) { } |
|
263
|
0 |
0 |
if (ref $previous eq 'Regexp') { } |
|
272
|
0 |
7 |
if (ref $app_prefix eq 'Regexp') { } |
|
281
|
7 |
0 |
if (ref $cb eq 'CODE') |
|
287
|
0 |
7 |
if $e |
|
299
|
0 |
0 |
exists $$conf{'serializers'} ? : |
|
308
|
0 |
0 |
defined captures() ? : |
|
309
|
0 |
0 |
unless $format ||= param('format') |
|
311
|
0 |
0 |
unless my $serializer = $$serializers{$format} |
|
346
|
4 |
9 |
if ($resource =~ /[$c]/) |
|
358
|
1 |
12 |
if (exists $triggers{'altsyntax'}) |
|
364
|
0 |
13 |
if (exists $triggers{'idregex'}) |
|
372
|
3 |
10 |
if (exists $triggers{'validation'}) |
|
376
|
2 |
11 |
if (exists $triggers{'chain'}) |
|
380
|
2 |
11 |
if (exists $triggers{"chain$SUFFIX"}) |
|
384
|
6 |
7 |
if (exists $triggers{'prefix' . $SUFFIX}) |
|
387
|
6 |
0 |
$$_{'prefixed_with_id'} ? : |
|
395
|
1 |
12 |
if (exists $triggers{'prefix'}) |
|
398
|
0 |
1 |
$$_{'prefixed_with_id'} ? : |
|
409
|
43 |
35 |
unless exists $triggers{$action} |
|
413
|
6 |
29 |
if ($action eq 'index') { } |
|
|
6 |
23 |
elsif ($action eq 'create') { } |
|
433
|
5 |
30 |
if ($altsyntax) |
|
456
|
5 |
0 |
if defined $_ |
|
458
|
5 |
0 |
@$stack ? : |
|
463
|
5 |
0 |
if (defined $parent) |
|
464
|
5 |
0 |
if (exists $$parent{'validation_rules'} and exists $$parent{'validation_rules'}{'wrap'} and exists $$parent{'validation_rules'}{'wrap'}{$action} and exists $$parent{'validation_rules'}{'wrap'}{$action}{$route}) |
|
512
|
2 |
0 |
if ($code >= 400) { } |