Branch Coverage

blib/lib/WebAPI/DBIC/Resource/Role/DBICParams.pm
Criterion Covered Total %
branch 0 80 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 $ENV{'WEBAPI_DBIC_DEBUG'}
143 0 0 if scalar @$prefetch
158 0 0 unless defined $prefetch and length $prefetch
161 0 0 if (ref $prefetch eq 'ARRAY') { }
0 0 elsif (ref $prefetch eq 'HASH') { }
0 0 elsif (ref $prefetch) { }
167 0 0 if $rel eq 'self'
169 0 0 if (my(@validate_errors) = $self->_validate_relationship($result_class, $rel)) { }
183 0 0 if ($rel ne 'self' and scalar @validate_errors) { }
193 0 0 if @errors
207 0 0 unless $rel_info
209 0 0 if not $$rel_info{'attrs'}{'accessor'} =~ /^(?:single|filter|multi)$/
229 0 0 if (ref $value eq 'ARRAY') { }
239 0 0 unless defined $field
245 0 0 if @columns
260 0 0 if (ref $value)
267 0 0 unless (defined $value)
275 0 0 if ($clause =~ /^ ([a-z0-9_\.]*)\b (?:\s+(asc|desc))? $/xi) { }
0 0 elsif ($clause =~ /^ (-?) ([a-z0-9_\.]*)$/xi) { }
279 0 0 $1 ? :
282 0 0 unless (defined $field)
293 0 0 if @order_spec
306 0 0 unless $sort
308 0 0 unless $self->param('fields')
310 0 0 unless $self->param('fields') eq $sort
313 0 0 if $errors