Condition Coverage

blib/lib/DBI/Easy/Record/Collection.pm
Criterion Covered Total %
condition 28 62 45.1


and 3 conditions

line !l l&&!r l&&r condition
117 6 0 16 $params{'suffix'} and ref $params{'suffix'}
6 0 16 $params{'suffix'} and ref $params{'suffix'} and ref $params{'suffix'} eq 'ARRAY'
126 22 0 0 $params{'fetch_handler'} and ref $params{'fetch_handler'} eq 'CODE'
221 0 0 0 defined $filter and ref $filter eq 'HASH'
321 0 0 0 $sort_col and $start =~ /\d+/
0 0 0 $sort_col and $start =~ /\d+/ and $limit =~ /\d+/

or 2 conditions

line l !l condition
14 4 0 shift() || {}
42 29 8 shift() || {}
43 0 37 shift() || ''
49 2 0 delete $args{'where'} || {}
51 0 2 delete $args{'suffix'} || ''
91 11 5 shift() || {}
92 0 16 shift() || ''
93 3 13 shift() || []
109 19 2 delete $params{'where'} || {}
118 0 16 shift @{$params{'suffix'};} || ''
121 0 0 delete $params{'suffix'} || ''
242 0 0 shift() || ''
298 0 0 shift() || []
359 4 0 $$param{'page_size'} || 20
370 4 0 $$param{'page_num'} || 0
372 4 0 $$param{'pages_to_show'} || 10

or 3 conditions

line l !l&&r !l&&!r condition
40 37 0 2 not defined $_[0] or ref $_[0]
177 3 4 9 ref $_[0] or @_ % 2
197 0 0 1 ref $_[0] or @_ % 2
338 0 0 0 $limit > $MAX_LIMIT or !$limit > 0