Branch Coverage

blib/lib/DBIx/Custom/Result.pm
Criterion Covered Total %
branch 70 86 81.4


line true false branch
17 37 133 unless @row
19 56 77 if ($self->{'_has_filter'})
21 50 6 unless $self->{'_cache'}
24 32 9 if ($self->{'type_rule'}{'from1'} and not $self->{'type_rule_off'} and not $self->{'type_rule1_off'})
29 0 35 unless $self->{'_pos'}{$column}
33 18 6 if ($self->{'type_rule'}{'from2'} and not $self->{'type_rule_off'} and not $self->{'type_rule2_off'})
38 0 18 unless $self->{'_pos'}{$column}
44 24 32 if ($self->{'filter'})
49 0 24 unless $filter
51 0 24 unless $self->{'_pos'}{$column}
63 497 983 unless my $row = $self->{'sth'}->fetchrow_hashref
65 65 918 if ($self->{'_has_filter'})
68 62 3 unless $self->{'_cache'}
71 29 3 if ($self->{'type_rule'}{'from1'} and not $self->{'type_rule_off'} and not $self->{'type_rule1_off'})
80 0 0 if ($self->{'type_rule'}{'from2'} and not $self->{'type_rule_off'} and not $self->{'type_rule2_off'})
90 15 50 if ($self->{'filter'})
94 0 15 unless exists $row->{$column}
96 15 0 if $filter
129 2 312 unless $row
141 2 17 unless $count
144 5 12 if $self->{'_finished'}
149 5 19 unless ($row)
156 0 12 unless @$rows
164 2 17 unless $count
167 5 12 if $self->{'_finished'}
173 5 19 unless ($row)
180 0 12 unless @$rows
190 6 51 unless $row
204 33 30 if (@_)
207 15 18 @_ == 1 ? :
211 18 15 if (exists $filter->{$column} and defined $fname and ref $fname ne 'CODE')
216 3 15 unless exists $self->dbi->filters->{$fname}
247 0 18 unless defined $key_value
248 12 6 if ($opt{'multi'}) { }
267 0 12 unless defined $key_value
284 115 0 if (@_)
285 94 21 ref $_[0] eq 'HASH' ? :
290 109 121 unless $$type_rule{"from$i"}
291 0 139 if $data_type =~ /[A-Z]/
294 3 136 if (defined $fname and ref $fname ne 'CODE')
296 0 3 unless exists $self->dbi->filters->{$fname}
349 3 3 $row ? :
367 0 339 unless $self->{'sth'}{'NAME'}