Branch Coverage

blib/lib/DBIx/Query.pm
Criterion Covered Total %
branch 49 118 41.5


line true false branch
21 2 2 $attr ? :
22 4 0 unless exists $attr->{'PrintError'}
23 3 1 unless exists $attr->{'RaiseError'}
25 0 4 $DBI::connect_via eq 'Apache::DBI::connect' ? :
54 0 213 unless $name
55 115 98 if @_
64 0 40 if ($@)
95 4 0 ref $connection eq 'HASH' && ref $connection->{'attr'} eq 'HASH' ? :
102 3 1 unless ($dialect)
121 1 1 @_ > 1 && !wantarray ? :
1 2 @_ > 1 && wantarray ? :
2 3 @_ == 0 && !wantarray ? :
2 5 @_ == 0 && wantarray ? :
129 2 20 defined $cache_type && $cache_type == -1 ? :
155 0 7 unless length $sql
208 0 1 unless $sth->_param("variables")
256 0 5 unless $sth->_param("variables")
308 0 0 unless length $sql
311 0 0 if (not defined $_[0] or ref $_[0] eq 'HASH') { }
345 0 0 unless $self->_param("query")
348 0 0 if ref $_[0] ne "HASH" and @_ % 2
352 0 0 unless $query->{'where'}
0 0 ref $_[0] eq 'HASH' ? :
362 0 6 unless $self->_param("variables")
0 6 @input ? :
370 0 3 $sql ? :
377 1 7 if $saved_structure
378 0 7 if $self->_param("no_structure")
383 4 3 unless ($dq_parser_cache->{$sql})
387 1 3 if $parsed_structure->{'errstr'}
392 7 0 if ($dq_parser_cache->{$sql}) { }
402 0 11 if $_->{'alias'}
403 3 8 if $_->{'value'} eq "*"
434 0 2 if defined $wildcard_column
462 0 2 $self->{'sth'}->_wildcard_column ? :
468 2 0 if (my $row = $self->{'sth'}->$method)
473 2 0 if $value
491 0 0 $self->{'sth'}->_wildcard_column ? :
511 0 0 if (not defined $wantarray) { }
0 0 elsif (not wantarray) { }
515 0 0 if (@value < 2) { }
529 0 0 ref $type eq 'HASH' ? :
544 0 0 wantarray ? :
575 0 1 unless ref $structure eq "HASH"
578 1 0 if (ref $self->{'row'} eq 'ARRAY') { }
579 1 0 unless ($index =~ /^\d+$/)
583 0 1 unless defined $index and $index < @{$self->{'row'};}
587 0 0 if $index =~ /^\d+$/
590 0 0 unless exists $self->{'row'}{$index}
594 0 1 if (defined $new_value)
595 0 0 if (ref $self->{'row'} eq 'ARRAY') { }
611 0 0 if ref $self->{'row'} ne "ARRAY"
629 0 0 if (ref $self->{'row'} eq 'ARRAY') { }
631 0 0 if (ref $structure eq 'HASH' and $structure->{'column_invert_lookup'}) { }
650 0 0 unless ref $self->{'row'} eq "ARRAY"
657 0 0 unless $key
660 0 0 if (ref $params eq "HASH")
669 0 0 ref $key ? :
708 0 0 defined $new_value ? :