Branch Coverage

blib/lib/DBIx/Class/EncodedColumn.pm
Criterion Covered Total %
branch 17 24 70.8


line true false branch
19 3 9 unless exists $info->{'encode_column'} and $info->{'encode_column'} == 1
21 0 9 unless exists $info->{'encode_class'} and defined $info->{'encode_class'}
24 7 2 exists $info->{'encode_args'} ? :
25 0 9 unless ref $args eq 'HASH'
30 0 9 if $@
32 0 9 unless defined(my $encode_sub = eval { do { $class->make_encode_sub($column, $args) } })
34 3 6 unless $self->_column_encoders
36 7 0 if (exists $info->{'encode_check_method'} and $info->{'encode_check_method'})
38 0 7 unless defined(my $check_sub = eval { do { $class->make_check_sub($column, $args) } })
47 3 9 unless defined $_[1]
49 8 1 if (exists $$encs{$_[0]} and defined(my $encoder = $$encs{$_[0]}))
59 0 12 unless exists $attr->{$col} and defined $attr->{$col}