Branch Coverage

blib/lib/Test/File/Cleaner/State.pm
Criterion Covered Total %
branch 22 46 47.8


line true false branch
41 19 0 -e $_[1] ? :
43 0 19 unless my $Stat = &File::stat::stat($path)
107 0 10 unless defined $mode
129 5 5 $self->dir ? :
133 0 10 unless (-e $path)
139 0 10 unless ($dir eq $self->dir)
145 0 10 unless defined $mode
149 1 9 unless ($mode == $mode2)
151 0 1 if $Test::File::Cleaner::State::DEBUG
152 0 1 unless chmod $mode, $path
171 2 13 $self->dir ? :
175 0 15 unless -e $path
178 0 15 unless (-w $path)
180 0 0 if ($self->dir) { }
181 0 0 if $Test::File::Cleaner::State::DEBUG
182 0 0 unless chmod 0777, $path
184 0 0 if $Test::File::Cleaner::State::DEBUG
185 0 0 unless chmod 0666, $path
190 2 13 if ($self->dir) { }
191 0 2 if $Test::File::Cleaner::State::DEBUG
192 0 2 unless rmdir $path
194 0 13 if $Test::File::Cleaner::State::DEBUG
195 0 13 unless unlink $path