Branch Coverage

blib/lib/VCS/Which.pm
Criterion Covered Total %
branch 85 88 96.5


line true false branch
33 1 17 unless (%systems)
39 1 17 if ($self->dir and -f $self->dir)
60 2 8 unless ($dir =~ m[^/|^\w:/])
71 4 5 if $systems{$module}
75 0 5 unless (eval {
90 2 1 if ($dir) { }
100 6 9 $system->installed ? :
103 10 5 if ($dir)
105 2 8 $system->used($dir) ? :
108 0 10 if ($VCS::Which::EVAL_ERROR)
118 2 1 wantarray ? :
124 5 22 if ($dir) { }
131 7 20 if ($dir and -f $dir)
135 1 26 unless $dir
137 9 17 if exists $self->_which->{$dir}
144 64 17 unless $system->used($dir)
145 4 81 if $VCS::Which::EVAL_ERROR
147 17 64 if ($used and not defined $min)
152 17 64 if ($used and $used <= $min)
158 0 17 unless $self->_which->{$dir}
166 2 2 if ($dir) { }
173 1 3 unless $dir
175 1 2 if exists $self->_uptodate->{$dir}
186 1 3 unless @args
188 1 2 if (-e $args[0]) { }
195 1 2 unless $dir
205 2 3 if ($file and not -e $file)
210 1 1 -f $file ? :
3 2 !defined($file) ? :
215 1 4 unless $dir
225 3 2 if ($file) { }
232 1 4 unless $file
242 1 2 if ($file) { }
249 1 2 unless $file
259 1 2 if ($dir) { }
266 1 2 unless $dir
276 1 2 if ($dir) { }
283 1 2 unless $dir
293 1 2 if ($dir) { }
300 1 2 unless $dir
310 1 2 if ($dir) { }
317 1 2 unless $dir
327 1 2 if ($dir) { }
334 1 2 unless $dir