Branch Coverage

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


line true false branch
23 1 2 $attr ? :
24 3 0 unless exists $attr->{'PrintError'}
25 2 1 unless exists $attr->{'RaiseError'}
27 0 3 $DBI::connect_via eq 'Apache::DBI::connect' ? :
56 0 557 unless $name
57 305 252 if @_
66 0 196 if ($@)
97 3 0 ref $connection eq 'HASH' && ref $connection->{'attr'} eq 'HASH' ? :
117 1 1 @_ > 1 && !wantarray ? :
1 2 @_ > 1 && wantarray ? :
2 3 @_ == 0 && !wantarray ? :
2 5 @_ == 0 && wantarray ? :
125 4 72 defined $cache_type && $cache_type == -1 ? :
151 0 40 unless length $sql
204 0 2 unless $sth->_param("variables")
248 0 9 unless $sth->_param("variables")
300 0 1 unless length $sql
303 0 1 if (not defined $_[0] or ref $_[0] eq 'HASH') { }
337 0 4 unless $self->_param("query")
340 0 4 if ref $_[0] ne "HASH" and @_ % 2
344 1 3 unless $query->{'where'}
0 4 ref $_[0] eq 'HASH' ? :
354 7 26 unless $self->_param("variables")
21 33 @input ? :
362 0 3 $sql ? :
370 23 15 if $structure
371 0 15 if $self->_param("no_structure")
376 9 6 if not $DBIx::Query::_dq_parser_cache->{$sql} and $self->_param("dq")->_param("sql_parser")->parse($sql)
382 15 0 if ($DBIx::Query::_dq_parser_cache->{$sql}) { }
392 0 27 if $_->{'alias'}
393 4 23 if $_->{'value'} eq "*"
424 6 12 if defined $wildcard_column
452 7 10 $self->{'sth'}->_wildcard_column ? :
458 16 1 if (my $row = $self->{'sth'}->$method)
464 16 1 if $value
482 0 1 $self->{'sth'}->_wildcard_column ? :
502 0 15 if (not defined $wantarray) { }
14 1 elsif (not wantarray) { }
506 14 0 if (@value < 2) { }
520 1 1 ref $type eq 'HASH' ? :
535 1 1 wantarray ? :
566 0 8 unless ref $structure eq "HASH"
569 5 3 if (ref $self->{'row'} eq 'ARRAY') { }
570 4 1 unless ($index =~ /^\d+$/)
574 0 5 unless defined $index and $index < @{$self->{'row'};}
578 0 3 if $index =~ /^\d+$/
581 0 3 unless exists $self->{'row'}{$index}
585 2 6 if (defined $new_value)
586 1 1 if (ref $self->{'row'} eq 'ARRAY') { }
602 0 1 if ref $self->{'row'} ne "ARRAY"
620 8 3 if (ref $self->{'row'} eq 'ARRAY') { }
622 8 0 if (ref $structure eq 'HASH' and $structure->{'column_invert_lookup'}) { }
641 0 1 unless ref $self->{'row'} eq "ARRAY"
648 0 5 unless $key
651 4 1 if (ref $params eq "HASH")
660 0 5 ref $key ? :
699 0 7 defined $new_value ? :