Condition Coverage

blib/lib/Data/Fallback.pm
Criterion Covered Total %
condition 46 93 49.4


and 3 conditions

line !l l&&!r l&&r condition
77 0 0 9 $$self{'base_hash'} and ref $$self{'base_hash'}
0 0 9 $$self{'base_hash'} and ref $$self{'base_hash'} and ref $$self{'base_hash'} eq 'HASH'
174 0 0 5 defined $$self{'list_name'} and length $$self{'list_name'}
176 0 0 5 ref $$self{'list'} and ref $$self{'list'} eq 'ARRAY'
177 0 0 5 ref $$self{'list'}[0] and ref $$self{'list'}[0] eq 'HASH'
178 0 0 5 defined $items and length $items
180 0 4 1 $$self{'use_zeroth_hash'} and not $$self{'list'}[0]{'zeroth_hash'}
203 5 7 0 $$self{'hash'}{'content'} and $$self{'hash'}{'content'} =~ /\$primary_key\b/
269 0 0 7 defined $$self{'hash'}{'accept_update'} and length $$self{'hash'}{'accept_update'}
0 0 0 defined $$self{'accept_update'} and length $$self{'accept_update'}
286 0 7 0 not exists $$self{'hash'}{'primary_key'} and exists $$self{'set_primary_key'}
298 0 0 0 $$self{'got_item_from'} and $$self{'got_item_from'} =~ /$this_update/
340 0 0 2 defined $$self{'update'}{'item'} and length $$self{'update'}{'item'}
356 0 0 0 ref $list and ref $list eq 'ARRAY'
440 5 0 4 defined $$self{'hash'}{'cache_level'} and length $$self{'hash'}{'cache_level'}
0 0 5 defined $$self{'cache_level'} and length $$self{'cache_level'}
458 0 6 26 $$self{'cache'} and $$self{'cache'}{$package}
6 13 13 $$self{'cache'} and $$self{'cache'}{$package} and $$self{'cache'}{$package}{$cache_level}
19 0 13 $$self{'cache'} and $$self{'cache'}{$package} and $$self{'cache'}{$package}{$cache_level} and $$self{'cache'}{$package}{$cache_level}{$$self{'list_name'}}
13 0 13 $$self{'cache'} and $$self{'cache'}{$package} and $$self{'cache'}{$package}{$cache_level} and $$self{'cache'}{$package}{$cache_level}{$$self{'list_name'}} and $$self{'cache'}{$package}{$cache_level}{$$self{'list_name'}}{$type}
489 0 0 9 defined $value and length $value
508 18 0 9 $$self{'hash'}{'cache_hash'} && $$self{'hash'}{'cache_hash'}{'ttl'}

or 2 conditions

line l !l condition
148 1 0 $passed_zeroth_hash ||= {}
198 0 12 $primary_key || $$self{'hash'}{'primary_key'} || $$self{'primary_key'} || ''
218 7 5 $$self{'hash'}{'content'} ||= ''
348 0 0 shift() || die('need a list_name')
492 7 2 $$self{'cache'}{$package} ||= {}
493 7 2 $$self{'cache'}{$package}{$cache_level} ||= {}
494 7 2 $$self{'cache'}{$package}{$cache_level}{$$self{'list_name'}} ||= {}
495 6 3 $$self{'cache'}{$package}{$cache_level}{$$self{'list_name'}}{$type} ||= {}
514 0 25 $$self{"this_$key"} || $$self{'hash'}{$key} || $$self{$key} || ''

or 3 conditions

line l !l&&r !l&&!r condition
56 1 0 0 $units =~ /^s/i or not $units
212 7 0 5 $$self{'hash'}{'content'} or $$self{'hash'}{'zeroth_hash'}
214 10 2 0 $$self{'hash'}{'package'} ||= $$self{'package'}