Branch Coverage

blib/lib/Tie/FieldVals/Select.pm
Criterion Covered Total %
branch 42 128 32.8


line true false branch
94 196 382 if (not defined $select && $select || defined $match_any && $match_any) { }
0 382 elsif (not ref $select) { }
0 382 elsif (defined $match_any and $match_any) { }
0 382 elsif (ref $select eq 'ARRAY') { }
382 0 elsif (ref $select eq 'HASH') { }
103 0 0 if ($row_obj->match_any($select))
112 0 0 if ($row_obj->match_any($match_any))
121 0 0 if ($i >= $first and $i <= $last)
130 45 337 if ($row_obj->match(%{$select;}))
136 241 337 if ($add_this_row)
173 0 0 if ($DEBUG)
185 0 0 if ($args{'start_at_zero'}) { }
194 0 0 if ($self->{'OPTIONS'}{'num_recs'} < $count)
211 0 0 if ($DEBUG)
219 0 0 if (not defined $select || defined $match_any) { }
0 0 elsif (not ref $select) { }
0 0 elsif (ref $select eq 'ARRAY') { }
0 0 elsif (ref $select eq 'HASH') { }
0 0 elsif (defined $match_any and $match_any) { }
227 0 0 if ($row_obj->match_any($select))
236 0 0 if ($i >= $first and $i <= $last)
245 0 0 if ($row_obj->match(%{$select;}))
248 0 0 if ($DEBUG)
259 0 0 if ($row_obj->match_any($match_any))
265 0 0 unless ($matches)
267 0 0 if ($this_row_matches)
276 0 0 if ($this_row_matches)
281 0 0 if ($matches)
283 0 0 unless ($this_row_matches)
292 0 0 unless ($match_found)
296 0 0 if ($DEBUG)
381 3 9 defined $args{'sort_numeric'} ? :
383 5 7 defined $args{'sort_reversed'} ? :
384 2 10 defined $args{'sort_title'} ? :
386 2 10 defined $args{'sort_lastword'} ? :
390 15 0 if (exists $self->{'field_names_hash'}{$sfname} and defined $self->{'field_names_hash'}{$sfname} and $self->{'field_names_hash'}{$sfname})
408 0 364 if (not @a_arr) { }
410 0 0 if (defined $sort_numerically{$fn} and $sort_numerically{$fn}) { }
425 31 333 if (defined $sort_numerically{$fn} and $sort_numerically{$fn}) { }
433 6 25 if (not defined $a_val && $a_val or $a_val =~ /\D/)
443 6 327 if ($sort_title{$fn})
448 50 283 if ($sort_lastword{$fn})
474 84 77 defined $sort_numerically{$fn} && $sort_numerically{$fn} ? :
0 390 defined $sort_numerically{$fn} && $sort_numerically{$fn} ? :
161 390 defined $sort_reversed{$fn} && $sort_reversed{$fn} ? :
479 407 144 if ($result != 0)
520 0 0 if ($args{'unique'}) { }
522 0 0 unless ($col_vals{$val})
586 0 239 if $DEBUG
589 238 1 if ($ind >= 0 and $ind < $self->{'OPTIONS'}{'num_recs'})
593 0 238 if ($DEBUG)
619 0 0 if $DEBUG
622 0 0 if ($ind >= 0 and $ind < $self->{'OPTIONS'}{'num_recs'})
639 0 286 if $DEBUG
653 0 0 if $DEBUG
657 0 0 if ($count <= @{$self->{'SEL_RECS'};})
672 0 0 if $DEBUG
676 0 0 if ($ind >= 0 and $ind < $self->{'OPTIONS'}{'num_recs'})
694 0 0 if $DEBUG
698 0 0 if ($ind >= 0 and $ind < $self->{'OPTIONS'}{'num_recs'})
715 0 0 if $DEBUG
732 0 1 if $DEBUG
736 0 1 if $count
752 0 0 @_ ? :