Condition Coverage

blib/lib/ActiveRecord/Simple/Find.pm
Criterion Covered Total %
condition 36 64 56.2


and 3 conditions

line !l l&&!r l&&r condition
36 25 39 22 not ref $param[0] and scalar @param == 1
25 6 33 not ref $param[0] and scalar @param == 0
6 2 23 ref $param[0] and ref $param[0] eq 'HASH'
6 0 2 ref $param[0] and ref $param[0] eq 'ARRAY'
148 2 7 1 $mixins and grep {$_ eq $fld;} keys %$mixins
245 80 0 0 $limit and $i == $limit
355 0 0 14 $self_class->dbh and $class
0 0 14 $self_class->dbh and $class and $param
420 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
434 0 0 85 $self->{'SQL'} and $self->dbh
523 23 0 0 ref $param_hash->{$param_name} eq 'ARRAY' and not ref $param_hash->{$param_name}[0]
579 0 0 9 ref $self->{'prep_order_by'} eq 'ARRAY' and scalar @{$self->{'prep_order_by'};} > 0

or 2 conditions

line l !l condition
30 0 86 $self->{'prep_select_fields'} //= []
31 0 86 $self->{'prep_select_from'} //= []
32 0 86 $self->{'prep_select_where'} //= []
113 1 5 $limit //= 1
126 0 3 $limit //= 1
170 1 19 $self->{'prep_order_by'} ||= []
188 0 3 $self->{'prep_group_by'} ||= []
273 4 3 $n ||= 1
423 0 0 $time ||= scalar @{$self->{'_objects'};}
437 85 0 $driver_name //= 'Pg'
512 10 75 $self->{'prep_offset'} // 0

or 3 conditions

line l !l&&r !l&&!r condition
511 19 66 0 $self->{'prep_limit'} // $MAXIMUM_LIMIT