Branch Coverage

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


line true false branch
30 0 0 unless defined $link_url_templated
59 0 0 unless $self->prefetch
62 0 0 if $self->param('distinct')
69 0 0 if (@idcolumns > 1)
70 0 0 unless $our $warn_once{"$result_class $relname"}++
75 0 0 unless my($top_link_key, $top_link_value) = $self->top_link_for_relname($relname)
89 0 0 if (not defined $subitem) { }
0 0 elsif ($subitem->isa('DBIx::Class::ResultSet')) { }
0 0 elsif ($subitem->isa('DBIx::Class::Row')) { }
119 0 0 $self->param('distinct') ? :
124 0 0 if (keys %top_links)
128 0 0 if (keys %compound_links)
137 0 0 if (($self->param('with') || '') =~ /count/)
168 0 0 if $rel eq 'self'
172 0 0 if (not defined $subitem) { }
0 0 elsif ($subitem->isa('DBIx::Class::ResultSet')) { }
176 0 0 ref $sub_rel eq 'ARRAY' ? :
196 0 0 if $edit_hook
209 0 0 unless $set->is_paged
216 0 0 unless my $rows = $$set{'attrs'}{'rows'}
217 0 0 unless my $page = $$set{'attrs'}{'page'}
230 0 0 if $page_items == $rows
232 0 0 if $page > 1
234 0 0 if $page > 1
236 0 0 if $total_items and $page != $set->pager->last_page