Branch Coverage

lib/CatalystX/CRUD/Model/Utils.pm
Criterion Covered Total %
branch 28 54 51.8


line true false branch
136 1 10 if defined $params->{$p}
144 0 10 if defined $params->{$p} and defined $dir
148 0 5 ref $pks ? :
162 0 0 if (exists $c->req->params->{'cxc-query-fields'} and exists $c->req->params->{'cxc-query'})
168 0 6 unless (ref $field_names)
184 0 6 if $page_size > 200
188 6 0 unless (defined $offset)
208 6 0 $p2q->{'query'} ? :
211 0 6 if ($params->{'cxc-no_page'})
250 0 6 unless defined $field_names and ref $field_names eq "ARRAY"
256 0 6 $self->use_ilike ? :
257 0 6 $self->can('treat_like_int') ? :
266 0 12 exists $treat_like_int->{$fn} ? :
277 2 4 if (exists $params->{'cxc-query'}) { }
281 0 2 ref $params->{'cxc-query'} ? :
283 0 2 if (exists $params->{'cxc-query-fields'})
287 0 0 ref $params->{'cxc-query-fields'} ? :
297 1 7 unless exists $params->{$_}
299 4 3 ref $params->{$_} ? :
305 0 7 unless grep {/\S/;} @v
318 0 7 if ($fuzzy2)
328 0 7 if $@
340 6 0 if (length $joined_query)
342 0 6 @default_columns ? :
356 0 6 if ($fuzzy2)
364 0 6 if $@
395 0 0 if $params->{'cxc-no_page'} or $params->{'_no_page'}