Condition Coverage

blib/lib/DBIx/SearchBuilder.pm
Criterion Covered Total %
condition 87 132 65.9


and 3 conditions

line !l l&&!r l&&r condition
261 579 815 40 not defined $self->{'count_all'} and $row->{'search_builder_count_all'}
377 160 0 38 $self->{'columns'} and @{$self->{'columns'};}
519 4 90 55 not $self->{'joins_are_distinct'} and $self->_isJoined
589 0 3 41 not $self->{'joins_are_distinct'} and $self->_isJoined
1004 55 0 3 &blessed($args{'VALUE'}) and $args{'VALUE'}->isa("DBIx::SearchBuilder")
1007 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 }
1085 111 0 2 defined $args{'LEFTJOIN'} and not defined $args{'ALIAS'}
1133 0 0 113 $self->_Handle->CaseSensitive and defined $args{'VALUE'}
0 0 113 $self->_Handle->CaseSensitive and defined $args{'VALUE'} and $args{'VALUE'} ne ""
0 0 113 $self->_Handle->CaseSensitive and defined $args{'VALUE'} and $args{'VALUE'} ne "" and $args{'VALUE'} ne "''"
0 10 103 $self->_Handle->CaseSensitive and defined $args{'VALUE'} and $args{'VALUE'} ne "" and $args{'VALUE'} ne "''" and not $args{'OPERATOR'} =~ /IS/ || $args{'VALUE'} =~ /^null$/i
1295 0 178 144 $rowhash{'ORDER'} and $rowhash{'ORDER'} =~ /^des/i
1305 0 0 322 defined $rowhash{'ALIAS'} and $rowhash{'FIELD'}
0 0 322 defined $rowhash{'ALIAS'} and $rowhash{'FIELD'} and $rowhash{'ORDER'}
1309 0 250 72 length $rowhash{'ALIAS'} and $rowhash{'FIELD'} =~ /^(.*\()(.*\))$/
1407 5 0 1 $args{'DISTINCT'} and not defined $self->{'joins_are_distinct'}
1504 439 1 53 @_ and ($_[0] || 0) != $self->{'show_rows'}
1578 211 16 37 @_ and ($_[0] || 1) != $self->{'first_row'} + 1
1648 33 25 24 $self->RowsPerPage and not defined $self->{'count_all'}
1759 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
1862 3 1 1 not $func =~ /\(/ and lc $func ne "null"

or 2 conditions

line l !l condition
778 24 0 $self->{'items'} || []
828 0 0 $unsupported_combine_search_and_count_logged ||= 1
1123 0 2 $self->{'left_joins'}{$args{'LEFTJOIN'}}{'criteria'}{$ClauseId} ||= []
1126 4 107 $self->{'restrictions'}{$ClauseId} ||= []
1155 113 0 $args{'ENTRYAGGREGATOR'} || ''
1175 1 0 $self->{'restrictions'}{$clause} ||= []
1388 6 0 shift() || die('Missing parameter')
1399 0 0 $self->{'left_joins'}{"$alias"} ||= {}
1504 53 1 $_[0] || 0
1505 53 0 shift() || 0
1559 41 0 shift() || 0
1578 53 0 $_[0] || 1
1752 19 49 $args{'ALIAS'} ||= "main"
1754 68 0 $self->CombineFunctionWithField(%args) || 'NULL'
1774 4 0 $self->{'columns'} ||= []
1777 31 37 $self->{'columns'} ||= []
1855 9 0 $args{'FUNCTION'} || undef
1858 176 40 $args{'ALIAS'} || 'main'

or 3 conditions

line l !l&&r !l&&!r condition
93 1 130 0 ref $proto || $proto
355 40 4 0 $self->{'count_all'} //= $self->__DoCount
1112 2 111 0 $args{'SUBCLAUSE'} || $args{'ALIAS'} . '.' . $args{'FIELD'}
1133 10 0 103 $args{'OPERATOR'} =~ /IS/ || $args{'VALUE'} =~ /^null$/i
1135 0 60 43 $args{'CASESENSITIVE'} or not $args{'QUOTEVALUE'}
1155 0 109 4 lc($args{'ENTRYAGGREGATOR'} || '') eq "none" or not @$restriction
1648 46 24 58 $self->{'must_redo_search'} or $self->RowsPerPage and not defined $self->{'count_all'}
1758 2 2 64 defined $column or exists $args{'AS'}
1759 60 0 0 !$args{'TABLE'} || $args{'TABLE'} eq $self->Table
1994 0 36 244 $self->{'_prefer_bind'} // $PREFER_BIND