Branch Coverage

blib/lib/EntityModel/Query.pm
Criterion Covered Total %
branch 39 68 57.3


line true false branch
121 11 0 if @_
149 0 35 if $k eq 'key'
155 0 35 if ($k eq 'db') { }
0 35 elsif ($k eq 'transaction') { }
35 0 elsif (my $handler = $self->can_parse($k)) { }
185 3 26 if (ref $spec ~~ 'ARRAY') { }
8 18 elsif (ref $spec ~~ 'HASH') { }
0 18 elsif (ref $spec) { }
186 5 0 $extType ? :
189 8 0 $extType ? :
194 18 0 $extType ? :
274 8 12 $_->alias ? :
277 0 16 unless $fields
290 2 14 unless $from
301 2 14 exists $$self{'limit'} ? :
302 14 2 unless $sql
312 0 16 exists $$self{'offset'} ? :
313 16 0 unless $sql
324 12 4 unless $sql
335 8 8 unless $sql
346 16 0 unless $sql
356 6 12 unless $self->where
367 16 0 unless $join
389 90 70 unless defined $entry
390 54 16 if @sql
391 10 60 if (ref $entry eq 'ARRAY') { }
397 0 16 if $self->forUpdate
409 0 0 unless $self->db
410 0 0 unless $self->db
418 0 0 if ($@)
424 0 0 unless $$sth{'Active'}
452 0 0 if ($@)
457 0 0 unless $$sth{'Active'}
472 0 0 unless $self->db