Branch Coverage

blib/lib/PQL/Cache.pm
Criterion Covered Total %
branch 93 140 66.4


line true false branch
64 0 2 unless defined $table_name
75 0 45 unless defined $table_name
79 0 45 unless ($table_def)
94 0 69 unless defined $table_name
98 0 69 unless $table
109 0 39 unless defined $table_name
113 0 39 unless $index
125 0 33 unless defined $table_name
129 27 6 unless defined $column
143 2 4 unless defined $index
187 1 0 unless $step2_subs
193 0 1 if ref $compare_value
201 0 2 if ref $compare_value
209 0 4 unless ref $matching_sub eq 'CODE'
216 0 1 unless ref $matching_sub eq 'CODE'
225 0 1 unless ref $matching_sub eq 'CODE'
231 1 0 unless $combine_subs
237 0 0 unless ref $conditions eq 'ARRAY'
244 1 0 unless $compare_subs
251 0 2 unless ref $array_ref eq 'ARRAY'
269 0 8 if ref $value
272 0 8 unless defined $value
282 0 5 if ref $value
287 1 4 if ($pattern =~ /^\^/o) { }
294 1 4 if ($pattern =~ /\$$/o) { }
316 2 6 unless $$self{'_cache'}{$table_name}
317 2 6 unless $$self{'_index'}{$table_name}
319 2 6 unless ($$self{'_keys'}{$table_name})
337 0 6 unless defined $table_name
338 0 6 unless defined $data
343 0 6 if (ref $data eq 'ARRAY') { }
374 6 0 unless $key_index
390 0 1 unless defined $table_name
395 0 1 unless $cache_arr and $index_arr
417 0 5 unless $data
441 0 66 unless defined $value
463 0 1 unless defined $next_free_idx
467 1 0 if $index < $next_free_idx
478 0 1 if $index != $other_index
496 61 1 if (/^#\|(\d+)\|#/) { }
525 24 0 if $columns
540 1 23 if ($value_type) { }
23 0 elsif ($columns eq 'all') { }
541 1 0 if ($value_type eq 'ARRAY') { }
588 3 20 if ($index_keys and scalar @$index_keys)
595 0 3 if ($tids_first_run) { }
596 0 0 if (scalar @$tids_first_run < scalar @$matches)
606 23 3 if ($first_search) { }
613 14 124 if ($$conditions{$key})
614 2 12 if $search_str
619 12 11 if ($search_str) { }
643 7 16 if ($step2_operations and scalar @$step2_operations)
651 16 14 unless (&$selection_sub())
656 8 16 if $selected
677 3 23 unless $where_condition
697 11 16 if (not $param_2_ref) { }
2 14 elsif ($param_2_ref eq 'ARRAY') { }
8 6 elsif ($param_2_ref eq 'HASH') { }
6 0 elsif ($param_2_ref eq 'CODE') { }
709 1 5 if ($param_1 eq 'data') { }
4 1 elsif ($param_1 eq 'obj') { }
730 0 27 if $comb_ref
734 11 16 if ($operation eq 'is')
738 3 8 if ($$table_indexes{$column})
745 24 3 unless ($use_index)
748 15 9 if ($cond_ref) { }
754 9 0 if ($step2_operation) { }
760 0 0 unless ($cond_ref)
793 0 30 unless $text
814 0 0 if ($table) { }