Branch Coverage

blib/lib/Catalyst/View/CSV.pm
Criterion Covered Total %
branch 18 24 75.0


line true false branch
238 0 2 unless my $csv = 'Text::CSV'->new($config)
257 0 20 unless exists $c->stash->{'data'} or exists $c->stash->{'cursor'}
263 25 5 unless (defined $filename)
266 25 0 if ($suffix)
275 25 5 $columns ? :
283 25 5 if ($columns)
284 0 25 unless $csv->print($response, $columns)
287 10 20 if ($data) { }
289 30 20 if (ref $row eq 'ARRAY') { }
10 10 elsif (ref $row eq 'HASH') { }
296 0 50 unless $csv->print($response, $row)
301 0 80 unless $csv->print($response, \@row)