Branch Coverage

blib/lib/DBIx/Class/EncodedColumn.pm
Criterion Covered Total %
branch 18 24 75.0


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