Branch Coverage

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


line true false branch
44 0 0 if $param eq ''
48 0 0 if @v > 1
52 0 0 if ($param =~ /^\w+\.\w+/)
57 0 0 if $param eq 'search_criteria'
62 0 0 if ($param =~ /^(\w+)\[(\w+)\]$/) { }
63 0 0 if $queue{$1} and not ref $queue{$1}
68 0 0 if $queue{$param} and ref $queue{$param}
70 0 0 if $param eq 'order'
78 0 0 if $done{$param}++
82 0 0 unless ($self->can($method))
96 0 0 unless defined $value
104 0 0 unless defined $value
135 0 0 unless scalar @$prefetch
141 0 0 $self->param('fields') ? :
142 0 0 if scalar @$prefetch
157 0 0 unless defined $prefetch and length $prefetch
160 0 0 if (ref $prefetch eq 'ARRAY') { }
0 0 elsif (ref $prefetch eq 'HASH') { }
0 0 elsif (ref $prefetch) { }
166 0 0 if $rel eq 'self'
168 0 0 if (my(@validate_errors) = $self->_validate_relationship($result_class, $rel)) { }
182 0 0 if ($rel ne 'self' and scalar @validate_errors) { }
192 0 0 if @errors
206 0 0 unless $rel_info
208 0 0 if not $$rel_info{'attrs'}{'accessor'} =~ /^(?:single|filter|multi)$/
228 0 0 if (ref $value eq 'ARRAY') { }
238 0 0 unless defined $field
244 0 0 if @columns
259 0 0 if (ref $value)
266 0 0 unless (defined $value)
274 0 0 if ($clause =~ /^ ([a-z0-9_\.]*)\b (?:\s+(asc|desc))? $/xi) { }
0 0 elsif ($clause =~ /^ (-?) ([a-z0-9_\.]*)$/xi) { }
278 0 0 $1 ? :
281 0 0 unless (defined $field)
292 0 0 if @order_spec
305 0 0 unless $sort
307 0 0 unless $self->param('fields')
309 0 0 unless $self->param('fields') eq $sort
312 0 0 if $errors