Branch Coverage

blib/lib/Sort/Array.pm
Criterion Covered Total %
branch 0 50 0.0


line true false branch
38 0 0 if (scalar @{$arg{'data'};} == 0)
47 0 0 if ($^W)
58 0 0 if ($arg{'sorting'} eq 'ascending') { }
0 0 elsif ($arg{'sorting'} eq 'descending') { }
60 0 0 unless $a <=> $b
64 0 0 unless $b <=> $a
68 0 0 if ($use_warn)
73 0 0 if ($arg{'empty_fields'} eq 'delete')
76 0 0 if $_
95 0 0 unless ($arg{'cols'} or $arg{'cols'} =~ /0-9/)
102 0 0 unless ($arg{'field'} or $arg{'field'} =~ /0-9/)
109 0 0 if (not $arg{'sorting'} and $arg{'sorting'} ne 'ascending' || $arg{'sorting'} ne 'descending')
116 0 0 unless ($arg{'structure'})
123 0 0 if (scalar @{$arg{'data'};} == 0)
130 0 0 unless ($arg{'separator'})
139 0 0 if ($arg{'structure'} eq 'single')
148 0 0 if ($_ != $arg{'cols'})
162 0 0 if ($^W)
166 0 0 if ($arg{'sorting'} eq 'ascending') { }
0 0 elsif ($arg{'sorting'} eq 'descending') { }
169 0 0 unless $$a[1] <=> $$b[1]
181 0 0 unless $$b[1] <=> $$a[1]
192 0 0 if ($use_warn)
198 0 0 if ($arg{'structure'} eq 'csv') { }
0 0 elsif ($arg{'structure'} eq 'single') { }