Branch Coverage

blib/lib/DBIx/Query.pm
Criterion Covered Total %
branch 84 114 73.6


line true false branch
18 1 2 $attr ? :
19 3 0 unless exists $attr->{'PrintError'}
20 2 1 unless exists $attr->{'RaiseError'}
22 0 3 $DBI::connect_via eq 'Apache::DBI::connect' ? :
51 0 557 unless $name
52 305 252 if @_
61 0 196 if ($@)
92 3 0 ref $connection eq 'HASH' && ref $connection->{'attr'} eq 'HASH' ? :
112 1 1 @_ > 1 && !wantarray ? :
1 2 @_ > 1 && wantarray ? :
2 3 @_ == 0 && !wantarray ? :
2 5 @_ == 0 && wantarray ? :
120 4 72 defined $cache_type && $cache_type == -1 ? :
146 0 40 unless length $sql
199 0 2 unless $sth->_param('variables')
243 0 9 unless $sth->_param('variables')
295 0 1 unless length $sql
298 0 1 if (not defined $_[0] or ref $_[0] eq 'HASH') { }
332 0 4 unless $self->_param('query')
335 0 4 if ref $_[0] ne 'HASH' and @_ % 2
339 1 3 unless $query->{'where'}
0 4 ref $_[0] eq 'HASH' ? :
349 7 26 unless $self->_param('variables')
21 33 @input ? :
357 0 3 $sql ? :
365 23 15 if $structure
366 0 15 if $self->_param('no_structure')
371 9 6 if not $DBIx::Query::_dq_parser_cache->{$sql} and $self->_param('dq')->_param('sql_parser')->parse($sql)
377 15 0 if ($DBIx::Query::_dq_parser_cache->{$sql}) { }
387 0 27 if $_->{'alias'}
388 4 23 if $_->{'value'} eq '*'
419 6 12 if defined $wildcard_column
447 7 10 $self->{'sth'}->_wildcard_column ? :
453 16 1 if (my $row = $self->{'sth'}->$method)
459 16 1 if $value
477 0 1 $self->{'sth'}->_wildcard_column ? :
497 0 15 if (not defined $wantarray) { }
14 1 elsif (not wantarray) { }
501 14 0 if (@value < 2) { }
515 1 1 ref $type eq 'HASH' ? :
530 1 1 wantarray ? :
561 0 8 unless ref $structure eq 'HASH'
564 5 3 if (ref $self->{'row'} eq 'ARRAY') { }
565 4 1 unless ($index =~ /^\d+$/)
569 0 5 unless defined $index and $index < @{$self->{'row'};}
573 0 3 if $index =~ /^\d+$/
576 0 3 unless exists $self->{'row'}{$index}
580 2 6 if (defined $new_value)
581 1 1 if (ref $self->{'row'} eq 'ARRAY') { }
597 0 1 if ref $self->{'row'} ne 'ARRAY'
615 8 3 if (ref $self->{'row'} eq 'ARRAY') { }
617 8 0 if (ref $structure eq 'HASH' and $structure->{'column_invert_lookup'}) { }
636 0 1 unless ref $self->{'row'} eq 'ARRAY'
643 0 5 unless $key
646 4 1 if (ref $params eq 'HASH')
655 0 5 ref $key ? :
694 0 7 defined $new_value ? :