Branch Coverage

blib/lib/Text/CSV/Encoded.pm
Criterion Covered Total %
branch 51 66 77.2


line true false branch
8 0 13 if ('Text::CSV'->VERSION < 1.06)
13 13 0 if ($backend =~ /XS/ and $version >= 0.99 or $backend =~ /PP/ and $version >= 1.3) { }
42 3 1 unless %args
44 1 0 if (exists $args{'coder_class'})
59 7 83 if exists $opt->{$attr}
64 9 0 if (my $coder_class = $opt{'coder_class'} || $DefaultCoderClass) { }
72 6 66 if exists $opt{$attr}
87 1 20 if $self->encoding
89 6 15 unless ($self->encoding_out)
95 15 0 if $ret
105 18 6 if ($self->encoding_in) { }
109 6 0 if $self->SUPER::parse(@_)
112 24 0 if ($ret)
113 0 24 if $self->encoding
128 0 4 if $self->encoding
139 5 26 if (my $binds = $self->{'_BOUND_COLUMNS'})
142 10 0 if $self->encoding
147 5 21 unless $cols
150 8 13 if $self->encoding
163 5 23 if (@_ == 2)
167 5 23 unless $enc
169 0 28 unless defined $text
170 0 28 unless $self->SUPER::parse($text)
172 23 5 $enc ? :
179 4 19 if (@_ == 2)
183 0 23 unless defined $array and ref $array eq 'ARRAY'
184 0 23 unless $self->SUPER::combine(@$array)
186 19 4 $enc ? :
198 0 9 if ($@)
210 6 99 if (@_ > 1) { }
27 73 if (@_ > 1) { }
22 40 if (@_ > 1) { }
239 9 9 if @_ == 1