Branch Coverage

blib/lib/WebAPI/DBIC/Resource/JSONAPI/Role/DBIC.pm
Criterion Covered Total %
branch 0 52 0.0


line true false branch
30 0 0 unless defined $link_url_templated
56 0 0 if (@idcolumns > 1)
57 0 0 unless $our $warn_once{"$result_class $relname"}++
62 0 0 unless my($top_link_key, $top_link_value) = $self->top_link_for_relname($relname)
68 0 0 if $$item_edit_rel_hooks{$relname}
78 0 0 if (not defined $subitem) { }
0 0 elsif ($subitem->isa('DBIx::Class::ResultSet')) { }
0 0 elsif ($subitem->isa('DBIx::Class::Row')) { }
111 0 0 unless $self->prefetch
113 0 0 if $self->param('distinct')
127 0 0 $self->param('distinct') ? :
132 0 0 if (keys %$top_links)
136 0 0 if (keys %$compound_links)
145 0 0 if (($self->param('with') || '') =~ /count/)
176 0 0 if $rel eq 'self'
180 0 0 if (not defined $subitem) { }
0 0 elsif ($subitem->isa('DBIx::Class::ResultSet')) { }
184 0 0 ref $sub_rel eq 'ARRAY' ? :
204 0 0 if $edit_hook
217 0 0 unless $set->is_paged
224 0 0 unless my $rows = $$set{'attrs'}{'rows'}
225 0 0 unless my $page = $$set{'attrs'}{'page'}
238 0 0 if $page_items == $rows
240 0 0 if $page > 1
242 0 0 if $page > 1
244 0 0 if $total_items and $page != $set->pager->last_page