Condition Coverage

blib/lib/DBI/Easy/SQL.pm
Criterion Covered Total %
condition 33 79 41.7


and 3 conditions

line !l l&&!r l&&r condition
47 0 0 0 $field and $sort_col
0 0 0 $field and $sort_col and $dir =~ /^(?:asc|desc)$/i
128 2 89 0 defined $type and exists $BIND_TYPES{$type}
150 34 0 44 defined $where and $where ne ''
185 0 0 5 defined $where_hash && ref($where_hash) =~ /HASH|ARRAY/
347 22 23 0 defined $fieldset and $fieldset
383 28 17 0 defined $fieldset and defined $fieldset_method
411 44 0 1 defined $params{'limit'} and $params{'limit'} =~ /^(\d+)$/
416 1 0 0 defined $params{'offset'} and $params{'offset'} =~ /^(\d+)$/
446 38 0 0 defined $join and not $join =~ /^\s*$/
454 0 7 38 defined $where_statement and not $where_statement =~ /^\s*$/

or 2 conditions

line l !l condition
20 2 0 shift() || 0
66 73 0 shift() || 'where'
222 0 0 shift() || ''
227 0 6 $$params{'suffix'} || ''
256 0 0 shift() || ''
260 0 2 $$params{'suffix'} || ''
286 0 1 shift() || {}
287 0 1 shift() || ''
377 45 0 $params{'where'} || {}
378 0 45 $params{'suffix'} || ''
478 16 0 $params{'where'} || {}

or 3 conditions

line l !l&&r !l&&!r condition
58 0 0 0 $s > 1 or $s == -1
158 19 0 74 not defined $where_hash or $where_hash eq ''
160 0 15 50 ref $where_hash ne 'HASH' or scalar keys %$where_hash == 0
198 18 0 0 shift() || $self->field_values
320 0 3 0 $params{'set'} || $self->fields_to_columns
325 3 0 0 $$self{'column_values'}{$_pk_column_} or $$self{'field_values'}{$_pk_}
328 3 0 0 $$self{'column_values'}{$_pk_column_} || $$self{'field_values'}{$_pk_}
353 0 0 3 ref $fieldset ne 'ARRAY' or not scalar @$fieldset