Branch Coverage

blib/lib/Toader/Render/Directory/Cleanup.pm
Criterion Covered Total %
branch 0 72 0.0


line true false branch
63 0 0 unless (defined $toader)
72 0 0 if (ref $toader ne 'Toader')
83 0 0 if ($toader->error)
96 0 0 unless (defined $outputdir)
105 0 0 unless (-d $outputdir)
136 0 0 unless ($self->errorblank)
141 0 0 unless (defined $obj)
149 0 0 if (ref $obj ne 'Toader::Directory')
159 0 0 if ($obj->error)
169 0 0 unless (defined $dir)
178 0 0 if ($self->{'pathhelper'}->error)
188 0 0 unless (-e $dir)
198 0 0 if (-f $index) { }
199 0 0 unless (unlink $index)
203 0 0 if (-e $index)
214 0 0 if (not opendir($dh, $filesdir)) { }
215 0 0 unless (-e $filesdir)
234 0 0 if ($files[$int] eq '.' or $files[$int] eq '..')
242 0 0 unless (-f $path or $skip)
250 0 0 unless ($skip)
251 0 0 unless (unlink $path)
261 0 0 unless (defined $nonfiles[0] and defined $failed[0])
265 0 0 if (-e $filesdir and not rmdir $filesdir)
275 0 0 unless (-e $filesdir)
276 0 0 if (not opendir($dh, $dir)) { }
283 0 0 if (opendir $dh, $filesdir)
291 0 0 if ($files[$int] ne '.' or $files[$int] ne '..')
301 0 0 if ($rmObjDir)
302 0 0 unless (rmdir $dir)
310 0 0 if (defined $nonfiles[0] or $openFilesdirFailed or $indexNotAfile or $fileDirRMfailed or $objDirRMfailed or defined $failed[0])
321 0 0 if ($indexNotAfile)
325 0 0 if ($openFilesdirFailed)
329 0 0 if ($fileDirRMfailed)
333 0 0 if ($objDirRMfailed)
339 0 0 if (defined $nonfiles[0])
348 0 0 if (defined $failed[0])