Branch Coverage

blib/lib/Dir/ls.pm
Criterion Covered Total %
branch 30 40 75.0


line true false branch
17 1 8 if (ref $_[0] eq 'HASH') { }
22 2 7 unless defined $dir and length $dir
27 0 9 unless opendir my $dh, "$dir"
29 0 9 unless closedir $dh
31 8 0 unless ($options->{'a'} or $options->{'all'} or $options->{'f'})
32 4 4 if ($options->{'A'} or $options->{'almost-all'}) { }
33 48 4 if $_ ne '.'
39 6 3 unless defined $options->{'sort'}
40 9 0 unless ($options->{'U'} or $options->{'sort'} eq 'none' or $options->{'f'})
41 1 8 if ($options->{'v'} or $options->{'sort'} eq 'version') { }
48 0 218 unless $alnum[$a] cmp $alnum[$b]
51 1 7 if ($options->{'S'} or $options->{'sort'} eq 'size') { }
1 6 elsif ($options->{'X'} or $options->{'sort'} eq 'extension') { }
0 6 elsif ($options->{'t'} or $options->{'sort'} eq 'time') { }
0 6 elsif ($options->{'c'}) { }
0 6 elsif ($options->{'u'}) { }
0 6 elsif (length $options->{'sort'}) { }
72 2 7 if $options->{'r'} or $options->{'reverse'}
82 0 11 unless @stat
89 18 63 unless defined $ext