Branch Coverage

blib/lib/DBIx/TableLoader/CSV.pm
Criterion Covered Total %
branch 20 20 100.0


line true false branch
57 120 3 unless ($$self{'ignore_csv_errors'})
58 1 11 unless ($row or $$self{'csv'}->eof)
71 18 3 $$self{'file'} ? :
87 1 71 unless $$self{'csv'} ||= $$self{'csv_class'}->new({%{$$self{'csv_defaults'};}, %{$$self{'csv_opts'};}})
92 3 65 unless $$self{'io'} ||= $self->_open_file
96 3 62 if $$self{'columns'} and not $$self{'no_header'}
104 3 23 unless my $file = $$self{'file'}
108 6 17 if (my $layers = $$self{'file_open_layers'})
113 3 20 if (my $enc = $$self{'file_encoding'})
117 3 20 unless open my $fh, $mode, $file