Branch Coverage

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


line true false branch
16 0 14 unless defined $name
20 0 14 if exists $ENV{$ename}
27 7 0 if defined $home
31 0 0 if defined $dir
32 0 0 if defined $user
41 0 0 if ($scope eq 'global') { }
0 0 elsif ($scope eq 'user') { }
0 0 elsif ($scope eq 'app') { }
55 0 0 if ($scope eq 'global') { }
0 0 elsif ($scope eq 'user') { }
0 0 elsif ($scope eq 'app') { }
69 0 0 if ($scope eq 'global') { }
0 0 elsif ($scope eq 'user') { }
0 0 elsif ($scope eq 'app') { }
84 2 6 if ($write) { }
85 1 1 if ($global)
88 1 0 unless ($class->is_one_liner)
90 0 1 if -e $etc
93 1 0 if -e $etc
104 6 0 unless ($global)
106 3 3 if -f $fn
108 0 6 if -f "$fn.$ext"
113 6 0 unless ($class->is_one_liner)
116 0 6 if -f $fn
120 0 6 if -f $fn
125 0 6 if -f $fn
135 0 0 unless -e $path
137 0 0 unless -f $path || -l $path and -x $path
146 0 0 if ($write) { }
148 0 0 if ($global)
149 0 0 unless ($class->is_one_liner)
151 0 0 if -e $etc
154 0 0 if -e $etc
166 0 0 unless ($global)
168 0 0 if -f $fn
171 0 0 unless ($class->is_one_liner and not defined $dir)
174 0 0 if -f $fn
178 0 0 if -f $fn
183 0 0 if -f $fn