| line |
true |
false |
branch |
|
41
|
21 |
2 |
if (defined $data) |
|
46
|
1 |
22 |
if $self->top_level_links |
|
49
|
1 |
22 |
if ($self->registry and $self->registry->app) |
|
53
|
2 |
21 |
if $self->top_level_meta |
|
56
|
3 |
20 |
if @included |
|
82
|
8 |
30 |
if ref $data eq "ARRAY" |
|
86
|
1 |
29 |
if ($self->before_serialize) |
|
91
|
6 |
24 |
unless ref $data |
|
98
|
4 |
20 |
if ($self->links) |
|
114
|
7 |
0 |
if (my $data = obj_ref($t->{'data'}, \@inc)) |
|
118
|
1 |
6 |
if (my $links = $relationships{$key}{'links'}) |
|
123
|
7 |
0 |
if $included |
|
126
|
8 |
16 |
unless %{$s->{'attributes'}} |
|
128
|
4 |
20 |
if ($self->allowed_attributes) |
|
139
|
6 |
15 |
if ref $data eq "ARRAY" |
|
142
|
6 |
9 |
if keys %$data == 2 |
|
144
|
0 |
9 |
unless keys %$data |
|
154
|
1 |
23 |
ref $id ? : |
|
159
|
27 |
5 |
if ref $links eq "CODE" |
|
165
|
3 |
3 |
unless ref $item |
|
180
|
3 |
9 |
if (ref $obj eq "ARRAY") |
|
185
|
4 |
26 |
if $_->{'type'} eq $obj->{'type'} and $_->{'id'} eq $obj->{'id'} |
|
193
|
4 |
11 |
if (ref $data eq "ARRAY") |
|
208
|
11 |
0 |
unless (ref $id_key) |
|
212
|
3 |
8 |
if ($data->{'type'} eq "photo") |
|
217
|
6 |
0 |
if (1 == keys %obj and exists $obj{'id'}) |