Branch Coverage

blib/lib/Config/Find/Unix.pm
Criterion Covered Total %
branch 18 78 23.0


line true false branch
14 0 14 unless defined $name
18 0 14 if exists $ENV{$ename}
25 7 0 if defined $home
29 0 0 if defined $dir
30 0 0 if defined $user
39 0 0 if ($scope eq 'global') { }
0 0 elsif ($scope eq 'user') { }
0 0 elsif ($scope eq 'app') { }
53 0 0 if ($scope eq 'global') { }
0 0 elsif ($scope eq 'user') { }
0 0 elsif ($scope eq 'app') { }
67 0 0 if ($scope eq 'global') { }
0 0 elsif ($scope eq 'user') { }
0 0 elsif ($scope eq 'app') { }
82 2 6 if ($write) { }
83 1 1 if ($global)
86 1 0 unless ($class->is_one_liner)
88 0 1 if -e $etc
91 1 0 if -e $etc
102 6 0 unless ($global)
104 3 3 if -f $fn
106 0 6 if -f "$fn.$ext"
111 6 0 unless ($class->is_one_liner)
114 0 6 if -f $fn
118 0 6 if -f $fn
123 0 6 if -f $fn
133 0 0 unless -e $path
135 0 0 unless -f $path || -l $path and -x $path
144 0 0 if ($write) { }
146 0 0 if ($global)
147 0 0 unless ($class->is_one_liner)
149 0 0 if -e $etc
152 0 0 if -e $etc
164 0 0 unless ($global)
166 0 0 if -f $fn
169 0 0 unless ($class->is_one_liner and not defined $dir)
172 0 0 if -f $fn
176 0 0 if -f $fn
181 0 0 if -f $fn