Branch Coverage

blib/lib/Test/TempDir/Factory.pm
Criterion Covered Total %
branch 17 30 56.6


line true false branch
92 4 0 defined $lock ? :
107 2 4 if ($self->use_subdir) { }
110 3 1 unless -d $preferred
113 0 6 if (not $self->lock) { }
116 0 6 unless wantarray
117 6 0 if (my $lock = $self->try_lock($preferred))
133 2 2 if ($self->lock) { }
134 2 0 if (my $lock = $self->try_lock($dir))
150 0 8 unless $self->lock
161 1 5 unless -d $dir
170 0 16 if -d $dir and -w $dir
174 16 0 if (-d $t and -w $t)
176 16 0 if -d $dir and -w $dir or not -e $dir
186 0 0 if ($self->can('logger') and my $logger = $self->logger) { }
189 0 0 unless $self->verbose