Branch Coverage

bin/ls
Criterion Covered Total %
branch 17 170 10.0


line true false branch
36 0 0 unless defined $cols
44 0 0 unless $^O eq "MSWin32"
47 0 0 if $l =~ /\A-----/
48 0 0 $lines[0] =~ /\A\s*(\d+)/ ? :
52 0 0 if $^O eq "MSWin32"
54 0 0 if (has('tput')) { }
0 0 elsif (has('ssty')) { }
67 0 0 unless -x catfile($dir, $program)
84 0 0 if ($setids)
85 0 0 if ($setids & 1)
86 0 0 $1 eq 'x' ? :
88 0 0 if ($setids & 4)
89 0 0 $1 eq 'x' ? :
91 0 0 if ($setids & 2)
92 0 0 $1 eq 'x' ? :
109 0 0 if (exists $Options->{'d'} or not -d $file)
110 0 0 if (-l $file or -e $file)
112 0 0 -l $file ? :
121 0 0 unless (opendir $dh, $file)
128 0 0 if not exists $Options->{'a'} and $Name =~ /^\./o
131 0 0 -l $path ? :
168 0 0 exists $Options->{'k'} ? :
170 0 0 if (exists $Options->{'i'})
171 0 0 if (defined $Attributes->{$Entry}) { }
179 0 0 if (exists $Options->{'s'})
180 0 0 if (defined $Attributes->{$Entry}) { }
182 0 0 if $Blocks eq ""
190 0 0 if (not exists $Options->{'l'}) { }
194 0 0 if (not defined $Attributes->{$Entry}) { }
205 0 0 if (exists $Options->{'n'}) { }
210 0 0 if (defined $uid) { }
219 0 0 if (exists $Options->{'n'}) { }
225 0 0 if (defined $gid) { }
234 0 0 if ($Attributes->{$Entry}->mode & 49152) { }
245 0 0 if exists $Options->{'c'}
246 0 0 if exists $Options->{'u'}
252 0 0 if (start_time() - $time <= 15768000.0) { }
262 0 0 if (-l $path)
279 0 0 !defined($Attributes->{$file}) || $Attributes->{$file}->blocks eq '' ? :
281 0 0 if $l > $max_file_length
285 0 0 if ($is_dir)
286 0 0 if exists $Options->{'R'}
287 0 0 if grep {defined $Options->{$_};} "s", "i"
293 0 0 if (grep {defined $Options->{$_};} '1', 'l', 's', 'i') { }
301 0 0 unless defined $Options->{'w'}
309 0 0 $target < $#SortedEntries + 1 ? :
311 0 0 if ($elt + 1) % $Cols == 0
313 0 0 if ($elt + 1) % $Cols == 0
315 0 0 if ($elt + 1) % $Cols == 0
319 0 0 if exists $Options->{'R'}
322 0 0 if (not exists $Options->{'d'} and $Expand || exists $Options->{'R'})
324 0 0 if $entry eq "." or $entry eq ".."
325 0 0 if (defined $Attributes->{$entry} and $Attributes->{$entry}->mode & 16384)
339 0 0 if (exists $Options->{'S'}) { }
0 0 elsif (grep {exists $Options->{$_};} 't', 'c', 'u') { }
0 0 elsif (not exists $Options->{'f'}) { }
340 0 0 if (exists $Options->{'r'}) { }
349 0 0 if (exists $Options->{'r'}) { }
350 0 0 if (exists $Options->{'u'}) { }
0 0 elsif (exists $Options->{'c'}) { }
361 0 0 if (exists $Options->{'u'}) { }
0 0 elsif (exists $Options->{'c'}) { }
374 0 0 if (exists $Options->{'r'}) { }
391 0 1 if ($NO_GETGRGID)
407 0 0 unless defined $prepend
408 0 0 if $prepend
438 38 55 unless $arg =~ /\A-/
439 0 55 if $arg eq "--"
444 1 38 if exists $original_positions{'version'}
448 0 38 if exists $original_positions{'help'}
455 1 37 unless (&Getopt::Std::getopts($opts_string, $Options))
464 0 38 if defined $Options->{$key}
468 2 36 if $Options->{'f'}
470 38 0 unless (-t *STDOUT)
471 38 0 unless -t *STDOUT
474 0 38 if defined $Options->{'w'} and $Options->{'w'} == 0
517 46 258 if $opt eq $last
534 0 0 unless @args
544 0 0 -l $Arg ? :
545 0 0 -d $Arg && !exists $Options->{'d'} ? :
549 0 0 if (@Files)
555 0 0 unless @ret
564 0 0 unless (exists $Options->{'R'})
565 0 0 unless $First
567 0 0 if $ArgCount > 0