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
266 509 747 40 not defined $self->{'count_all'} and $row->{'search_builder_count_all'}
382 163 0 39 $self->{'columns'} and @{$self->{'columns'};}
524 4 94 55 not $self->{'joins_are_distinct'} and $self->_isJoined
594 0 3 41 not $self->{'joins_are_distinct'} and $self->_isJoined
1009 55 0 3 builtin::blessed($args{'VALUE'}) and $args{'VALUE'}->isa(__PACKAGE__)
1012 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 }
1090 112 0 2 defined $args{'LEFTJOIN'} and not defined $args{'ALIAS'}
1138 0 0 114 $self->_Handle->CaseSensitive and defined $args{'VALUE'}
0 0 114 $self->_Handle->CaseSensitive and defined $args{'VALUE'} and $args{'VALUE'} ne ""
0 0 114 $self->_Handle->CaseSensitive and defined $args{'VALUE'} and $args{'VALUE'} ne "" and $args{'VALUE'} ne "''"
0 11 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
1300 0 183 144 $rowhash{'ORDER'} and $rowhash{'ORDER'} =~ /^des/i
1310 0 0 327 defined $rowhash{'ALIAS'} and $rowhash{'FIELD'}
0 0 327 defined $rowhash{'ALIAS'} and $rowhash{'FIELD'} and $rowhash{'ORDER'}
1314 0 253 74 length $rowhash{'ALIAS'} and $rowhash{'FIELD'} =~ /^(.*\()(.*\))$/
1412 5 0 1 $args{'DISTINCT'} and not defined $self->{'joins_are_distinct'}
1509 444 1 53 @_ and ($_[0] || 0) != $self->{'show_rows'}
1583 215 16 37 @_ and ($_[0] || 1) != $self->{'first_row'} + 1
1653 33 25 24 $self->RowsPerPage and not defined $self->{'count_all'}
1764 3 1 61 $args{'FIELD'} and $args{'ALIAS'} eq "main"
4 0 61 $args{'FIELD'} and $args{'ALIAS'} eq "main" and !$args{'TABLE'} || $args{'TABLE'} eq $self->Table
1867 3 1 1 not $func =~ /\(/ and lc $func ne "null"

or 2 conditions

line l !l condition
783 26 0 $self->{'items'} || []
833 0 0 $unsupported_combine_search_and_count_logged ||= 1
1128 0 2 $self->{'left_joins'}{$args{'LEFTJOIN'}}{'criteria'}{$ClauseId} ||= []
1131 4 108 $self->{'restrictions'}{$ClauseId} ||= []
1160 114 0 $args{'ENTRYAGGREGATOR'} || ''
1180 1 0 $self->{'restrictions'}{$clause} ||= []
1393 6 0 shift() || die('Missing parameter')
1404 0 0 $self->{'left_joins'}{"$alias"} ||= {}
1509 53 1 $_[0] || 0
1510 53 0 shift() || 0
1564 41 0 shift() || 0
1583 53 0 $_[0] || 1
1757 19 50 $args{'ALIAS'} ||= "main"
1759 69 0 $self->CombineFunctionWithField(%args) || 'NULL'
1779 4 0 $self->{'columns'} ||= []
1782 31 38 $self->{'columns'} ||= []
1860 9 0 $args{'FUNCTION'} || undef
1863 178 40 $args{'ALIAS'} || 'main'

or 3 conditions

line l !l&&r !l&&!r condition
98 1 130 0 ref $proto || $proto
360 40 4 0 $self->{'count_all'} //= $self->__DoCount
1117 2 112 0 $args{'SUBCLAUSE'} || $args{'ALIAS'} . '.' . $args{'FIELD'}
1138 11 0 103 $args{'OPERATOR'} =~ /IS/ || $args{'VALUE'} =~ /^null$/i
1140 0 60 43 $args{'CASESENSITIVE'} or not $args{'QUOTEVALUE'}
1160 0 110 4 lc($args{'ENTRYAGGREGATOR'} || '') eq "none" or not @$restriction
1653 47 24 58 $self->{'must_redo_search'} or $self->RowsPerPage and not defined $self->{'count_all'}
1763 2 2 65 defined $column or exists $args{'AS'}
1764 61 0 0 !$args{'TABLE'} || $args{'TABLE'} eq $self->Table
2004 0 36 249 $self->{'_prefer_bind'} // $PREFER_BIND