Branch Coverage

blib/lib/Dir/ls.pm
Criterion Covered Total %
branch 31 42 73.8


line true false branch
18 1 8 if (ref $_[0] eq 'HASH') { }
23 2 7 unless defined $dir and length $dir
28 0 9 unless opendir my $dh, $dir
30 0 9 unless closedir $dh
32 8 0 unless ($options->{'a'} or $options->{'all'} or $options->{'f'})
33 4 4 if ($options->{'A'} or $options->{'almost-all'}) { }
34 48 4 if $_ ne '.'
40 6 3 unless defined $options->{'sort'}
41 9 0 unless ($options->{'U'} or $options->{'sort'} eq 'none' or $options->{'f'})
42 1 8 if ($options->{'v'} or $options->{'sort'} eq 'version') { }
49 0 213 unless $alnum[$a] cmp $alnum[$b]
52 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'}) { }
73 2 7 if $options->{'r'} or $options->{'reverse'}
83 0 11 unless (@stat)
87 0 11 unless @stat
94 18 63 unless defined $ext