line |
true |
false |
branch |
57
|
16 |
90 |
if ($c->req->data and scalar keys %{$c->req->data;}) { }
|
74
|
564 |
66 |
unless exists $req_params->{$param}
|
77
|
25 |
41 |
if (ref $req_params->{$param} eq 'HASH') { }
|
88
|
0 |
26 |
if $c->debug
|
101
|
0 |
27 |
if $c->debug
|
146
|
23 |
0 |
unless (defined $vals)
|
167
|
43 |
0 |
if ($c->req->has_request_data)
|
171
|
9 |
34 |
if (exists $$data{$self->data_root} and defined $$data{$self->data_root}) { }
|
175
|
9 |
0 |
if (&reftype($root) eq 'ARRAY') { }
|
|
0 |
0 |
elsif (&reftype($root) eq 'HASH') { }
|
194
|
38 |
17 |
unless (exists $val->{'id'})
|
217
|
0 |
40 |
unless defined $id and length $id
|
219
|
10 |
30 |
unless defined $object
|
256
|
13 |
0 |
if $req->has_search_attributes and (exists $req->search_attributes->{'page'} and defined $req->search_attributes->{'page'} and length $req->search_attributes->{'page'})
|
271
|
53 |
0 |
if $self->result_class
|
283
|
11 |
38 |
if ($c->req->has_search_total_entries)
|
310
|
0 |
3 |
if ($c->req->count_objects != 1) { }
|
326
|
24 |
0 |
if ($c->req->has_objects) { }
|
381
|
19 |
13 |
$object->in_storage ? :
|
384
|
17 |
65 |
ref $_ ? :
|
388
|
19 |
13 |
$object->in_storage ? :
|
397
|
17 |
59 |
if (ref $allowed_fields) { }
|
402
|
17 |
0 |
$allowed_related_map{'*'} ? :
|
406
|
0 |
17 |
if (ref $related_params and &reftype($related_params) eq 'ARRAY') { }
|
411
|
0 |
0 |
if (defined(my $related_col_value = $related_param->{$related_col}))
|
425
|
2 |
66 |
if (defined(my $related_col_value = $related_params->{$related_col}))
|
438
|
15 |
44 |
if ($requires_map{$key})
|
439
|
4 |
11 |
unless (defined $value)
|
444
|
2 |
2 |
unless (defined $value)
|
451
|
0 |
57 |
if (ref $value and not &reftype($value) eq &reftype(scalar &JSON::MaybeXS::true()))
|
461
|
34 |
23 |
if exists $params->{$key} or defined $value
|
465
|
3 |
27 |
unless (keys %values or not $object->in_storage)
|
476
|
4 |
0 |
if ($c->req->has_objects) { }
|
504
|
14 |
11 |
if ($object->in_storage) { }
|
540
|
0 |
17 |
if (ref $value and not &reftype($value) eq &reftype(scalar &JSON::MaybeXS::true())) { }
|
|
17 |
0 |
elsif ($object->can($key)) { }
|
560
|
0 |
0 |
if (&reftype($v) eq 'ARRAY') { }
|
592
|
105 |
1 |
unless ($c->res->status and $c->res->status != 200)
|
593
|
33 |
72 |
if ($self->has_errors($c)) { }
|
601
|
72 |
34 |
if ($c->res->status == 200) { }
|
603
|
16 |
56 |
$self->use_json_boolean ? :
|
604
|
6 |
2 |
if ($self->return_object and $c->req->has_objects and not exists $c->stash->{$self->stash_key}{$self->data_root})
|
610
|
1 |
5 |
scalar @$returned_objects > 1 ? :
|
618
|
7 |
27 |
$self->use_json_boolean ? :
|
619
|
33 |
1 |
if $self->has_errors($c)
|
645
|
0 |
33 |
unless defined $c
|
648
|
33 |
0 |
if (exists $params->{'message'})
|
661
|
0 |
33 |
unless defined $c
|
669
|
0 |
139 |
unless defined $c
|