Branch Coverage

blib/lib/Dir/TempChdir.pm
Criterion Covered Total %
branch 11 28 39.2


line true false branch
30 2 0 defined &Dir::TempChdir::O_PATH ? :
0 2 defined &Dir::TempChdir::O_SEARCH ? :
60 0 1 if (defined $dir and not defined $self->pushd($dir))
81 0 12 ref $dir && defined($fn = fileno $dir) ? :
84 0 12 unless defined $cwd
87 0 12 if (not defined 2097152 && sysopen($dh, '.', 2097152) || opendir($dh, '.')) { }
0 12 elsif (not chdir $dir) { }
107 6 0 if (defined $d) { }
0 0 elsif ($self->{'_initialized'}) { }
108 6 0 if (chdir $d->{'dh'})
138 0 0 builtin::blessed($self) ? :
143 0 0 builtin::blessed($self) ? :
150 1 0 if (defined $self->backout) { }
167 0 2 if ($HAVE_IGNORE_UNSAFE_CHDIR_SECURITY_RISK)