Branch Coverage

bin/app_dispatch
Criterion Covered Total %
branch 16 38 42.1


line true false branch
38 4 2 unless (-e $file)
44 1 1 if (-d $file)
45 0 1 unless opendir my $dir, $file
51 0 1 unless open my $fh, '<', $file
58 2 7 unless $line
59 2 5 if $line =~ /^#/
61 1 4 if ($line =~ /^\s*\[([a-zA-Z0-9_]+)\]\s*$/i)
67 0 4 unless ($program)
71 4 0 if ($line =~ /^\s*([a-zA-Z0-9_]+)\s*=\s*(\S+)\s*$/)
73 4 0 unless $1 eq 'SYSTEM' and $file ne '/etc/dispatch.conf'
87 1 0 unless $program
89 0 0 if $program eq 'DEBUG'
96 0 0 unless @cascade
102 0 0 if ($item eq 'ENV') { }
0 0 elsif (my $alias = $$conf{$item}) { }
0 0 elsif (-x $item) { }
106 0 0 unless -x $alias
113 0 0 if $run
118 0 0 if (keys %$conf) { }