Branch Coverage

blib/lib/Mojo/CSV.pm
Criterion Covered Total %
branch 24 34 70.5


line true false branch
34 1 10 if (ref $what eq 'Mojo::Asset::File') { }
3 7 elsif (ref $what eq 'Mojo::Asset::Memory') { }
1 6 elsif (ref $what) { }
6 0 elsif (defined $what) { }
38 0 3 unless open $fh, $how, \$what->slurp
44 0 6 unless open $fh, $how, $what
62 1 63 unless my $in = $self->in
63 7 56 unless my $row = $self->_obj->getline($in)
69 6 0 if @_
88 0 2 if @_
97 0 9 unless my $what = shift()
101 1 8 if (&reftype($what) and &reftype($what) eq 'ARRAY' and &reftype($what->[0]) and &reftype($what->[0]) eq 'ARRAY') { }
107 0 8 unless $obj->combine(@$row)
112 8 0 if $obj->combine(@$what)
120 0 19 unless my $what = shift()
121 1 18 unless my $out = $self->out
123 0 18 unless $obj->combine(@$what)