Branch Coverage

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


line true false branch
12 0 13 if ('Text::CSV'->VERSION < 1.06)
17 13 0 if ($backend =~ /XS/ and $version >= 0.99 or $backend =~ /PP/ and $version >= 1.3) { }
46 3 1 unless %args
48 1 0 if (exists $args{'coder_class'})
63 7 83 if exists $opt->{$attr}
68 9 0 if (my $coder_class = $opt{'coder_class'} || $DefaultCoderClass) { }
76 6 66 if exists $opt{$attr}
91 1 20 if $self->encoding
93 6 15 unless ($self->encoding_out)
99 15 0 if $ret
109 18 6 if ($self->encoding_in) { }
113 6 0 if $self->SUPER::parse(@_)
116 24 0 if ($ret)
117 0 24 if $self->encoding
132 0 4 if $self->encoding
143 5 26 if (my $binds = $self->{'_BOUND_COLUMNS'})
146 10 0 if $self->encoding
151 5 21 unless $cols
154 8 13 if $self->encoding
167 5 23 if (@_ == 2)
171 5 23 unless $enc
173 0 28 unless defined $text
174 0 28 unless $self->SUPER::parse($text)
176 23 5 $enc ? :
183 4 19 if (@_ == 2)
187 0 23 unless defined $array and ref $array eq 'ARRAY'
188 0 23 unless $self->SUPER::combine(@$array)
190 19 4 $enc ? :
202 0 9 if ($@)
214 6 99 if (@_ > 1) { }
27 73 if (@_ > 1) { }
22 40 if (@_ > 1) { }
243 9 9 if @_ == 1