Condition Coverage

blib/lib/ActiveRecord/Simple/Find.pm
Criterion Covered Total %
condition 40 70 57.1


and 3 conditions

line !l l&&!r l&&r condition
33 29 39 15 not ref $param[0] and scalar @param == 1
29 7 32 not ref $param[0] and scalar @param == 0
7 3 26 ref $param[0] and ref $param[0] eq 'HASH'
7 0 3 ref $param[0] and ref $param[0] eq 'ARRAY'
113 28 0 0 ref $param_hash->{$param_name} eq 'ARRAY' and not ref $param_hash->{$param_name}[0]
203 2 8 1 $mixins and grep {$_ eq $fld;} keys %$mixins
244 0 0 13 ref $self->{'prep_order_by'} eq 'ARRAY' and scalar @{$self->{'prep_order_by'};} > 0
292 5 0 2 not ref $opts and ref $opts ne 'HASH'
398 0 129 1 $obj->can('_smart_saving_used') and $obj->_smart_saving_used
434 83 0 0 $limit and $i == $limit
544 0 0 7 $self_class->dbh and $class
0 0 7 $self_class->dbh and $class and $param
581 0 0 0 $self->{'_objects'} and ref $self->{'_objects'} eq 'ARRAY'
0 0 0 $self->{'_objects'} and ref $self->{'_objects'} eq 'ARRAY' and scalar @{$self->{'_objects'};} > 0
595 0 0 82 $self->{'SQL'} and $self->dbh

or 2 conditions

line l !l condition
27 0 83 $self->{'prep_select_fields'} //= []
28 0 83 $self->{'prep_select_from'} //= []
29 0 83 $self->{'prep_select_where'} //= []
168 1 5 $limit //= 1
181 0 3 $limit //= 1
225 1 22 $self->{'prep_order_by'} ||= []
262 0 3 $self->{'prep_group_by'} ||= []
370 12 70 $self->{'prep_offset'} // 0
462 4 3 $n ||= 1
584 0 0 $time ||= scalar @{$self->{'_objects'};}
598 82 0 $driver_name //= 'Pg'

or 3 conditions

line l !l&&r !l&&!r condition
369 21 61 0 $self->{'prep_limit'} // $MAXIMUM_LIMIT