Condition Coverage

blib/lib/DBIx/SearchBuilder.pm
Criterion Covered Total %
condition 82 129 63.5


and 3 conditions

line !l l&&!r l&&r condition
261 43 363 4 not $self->{'count_all'} and $row->{'search_builder_count_all'}
367 84 0 38 $self->{'columns'} and @{$self->{'columns'};}
509 4 90 19 not $self->{'joins_are_distinct'} and $self->_isJoined
579 0 3 1 not $self->{'joins_are_distinct'} and $self->_isJoined
994 7 0 3 &blessed($args{'VALUE'}) and $args{'VALUE'}->isa("DBIx::SearchBuilder")
997 1 0 0 do { @{$args{'VALUE'}{'columns'};} > 1 } && do { warn "Collection in '$args{'OPERATOR'}' with more than one column selected, using first"; splice @{$args{'VALUE'}{'columns'};}, 1 }
1075 63 0 2 defined $args{'LEFTJOIN'} and not defined $args{'ALIAS'}
1123 0 0 65 $self->_Handle->CaseSensitive and defined $args{'VALUE'}
0 0 65 $self->_Handle->CaseSensitive and defined $args{'VALUE'} and $args{'VALUE'} ne ""
0 0 65 $self->_Handle->CaseSensitive and defined $args{'VALUE'} and $args{'VALUE'} ne "" and $args{'VALUE'} ne "''"
0 10 55 $self->_Handle->CaseSensitive and defined $args{'VALUE'} and $args{'VALUE'} ne "" and $args{'VALUE'} ne "''" and not $args{'OPERATOR'} =~ /IS/ || $args{'VALUE'} =~ /^null$/i
1285 0 44 10 $rowhash{'ORDER'} and $rowhash{'ORDER'} =~ /^des/i
1295 0 0 54 defined $rowhash{'ALIAS'} and $rowhash{'FIELD'}
0 0 54 defined $rowhash{'ALIAS'} and $rowhash{'FIELD'} and $rowhash{'ORDER'}
1299 0 46 8 length $rowhash{'ALIAS'} and $rowhash{'FIELD'} =~ /^(.*\()(.*\))$/
1397 5 0 1 $args{'DISTINCT'} and not defined $self->{'joins_are_distinct'}
1494 187 1 5 @_ and ($_[0] || 0) != $self->{'show_rows'}
1568 135 0 13 @_ and ($_[0] || 1) != $self->{'first_row'} + 1
1638 1 1 0 $self->RowsPerPage and not $self->{'count_all'}
1749 3 1 60 $args{'FIELD'} and $args{'ALIAS'} eq "main"
4 0 60 $args{'FIELD'} and $args{'ALIAS'} eq "main" and !$args{'TABLE'} || $args{'TABLE'} eq $self->Table
1852 3 1 1 not $func =~ /\(/ and lc $func ne "null"

or 2 conditions

line l !l condition
768 24 0 $self->{'items'} || []
818 0 0 $unsupported_combine_search_and_count_logged ||= 1
1113 0 2 $self->{'left_joins'}{$args{'LEFTJOIN'}}{'criteria'}{$ClauseId} ||= []
1116 4 59 $self->{'restrictions'}{$ClauseId} ||= []
1145 65 0 $args{'ENTRYAGGREGATOR'} || ''
1165 1 0 $self->{'restrictions'}{$clause} ||= []
1378 6 0 shift() || die('Missing parameter')
1389 0 0 $self->{'left_joins'}{"$alias"} ||= {}
1494 5 1 $_[0] || 0
1495 5 0 shift() || 0
1549 1 0 shift() || 0
1568 13 0 $_[0] || 1
1742 19 49 $args{'ALIAS'} ||= "main"
1744 68 0 $self->CombineFunctionWithField(%args) || 'NULL'
1764 4 0 $self->{'columns'} ||= []
1767 31 37 $self->{'columns'} ||= []
1845 9 0 $args{'FUNCTION'} || undef
1848 128 12 $args{'ALIAS'} || 'main'

or 3 conditions

line l !l&&r !l&&!r condition
93 1 54 0 ref $proto || $proto
1102 2 63 0 $args{'SUBCLAUSE'} || $args{'ALIAS'} . '.' . $args{'FIELD'}
1123 10 0 55 $args{'OPERATOR'} =~ /IS/ || $args{'VALUE'} =~ /^null$/i
1125 0 12 43 $args{'CASESENSITIVE'} or not $args{'QUOTEVALUE'}
1145 0 61 4 lc($args{'ENTRYAGGREGATOR'} || '') eq "none" or not @$restriction
1638 46 0 2 $self->{'must_redo_search'} or $self->RowsPerPage and not $self->{'count_all'}
1748 2 2 64 defined $column or exists $args{'AS'}
1749 60 0 0 !$args{'TABLE'} || $args{'TABLE'} eq $self->Table
1984 0 36 140 $self->{'_prefer_bind'} // $PREFER_BIND