Branch Coverage

blib/lib/DBIx/Class/FilterColumn.pm
Criterion Covered Total %
branch 35 52 67.3


line true false branch
15 1 5 if defined $colinfo->{'_inflate_info'} and $self->isa('DBIx::Class::InflateColumn')
17 0 5 unless $self->has_column($col)
20 0 5 unless ref $attrs eq 'HASH'
24 1 1 unless $attrs->{'filter_from_storage'} or $attrs->{'filter_to_storage'}
28 0 4 defined $acc ? :
35 0 14 if &is_literal_value($value)
37 0 14 unless my $info = $self->result_source->column_info($col)
40 0 14 unless exists $info->{'_filter_info'}
44 13 1 defined $filter ? :
50 4 16 if &is_literal_value($value)
52 0 16 unless my $info = $self->result_source->column_info($col)
55 0 16 unless exists $info->{'_filter_info'}
59 13 3 defined $unfilter ? :
66 0 33 unless exists $self->result_source->column_info($col)->{'_filter_info'}
69 19 14 if exists $self->{'_filtered_column'}{$col}
86 4 0 if not exists $self->{'_column_data'}{$col} and exists $self->{'_filtered_column'}{$col}
100 0 11 unless $self->{'_filtered_column'}
117 0 13 unless $self->{'_filtered_column'}
133 14 3 if exists $self->{'_filtered_column'}{$col}
143 10 12 if (not $self->in_storage or $self->is_column_changed($col)) { }
163 5 4 unless $data
164 4 0 if (exists $colinfos->{$col}{'_filter_info'})
170 0 4 unless exists $self->{'_column_data'}{$col}
181 0 7 unless my $rsrc = $$data{-'result_source'}
187 0 7 unless $data
188 6 0 if (exists $colinfos->{$col}{'_filter_info'})