Branch Coverage

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


line true false branch
64 0 0 unless (defined $toader)
73 0 0 if (ref $toader ne 'Toader')
84 0 0 if ($toader->error)
97 0 0 unless (defined $outputdir)
106 0 0 unless (-d $outputdir)
137 0 0 unless ($self->errorblank)
142 0 0 unless (defined $obj)
150 0 0 if (ref $obj ne 'Toader::Page')
159 0 0 if ($obj->error)
169 0 0 unless (defined $dir)
178 0 0 if ($$self{'pathhelper'}->error)
189 0 0 unless (-e $dir)
199 0 0 if (-f $index) { }
200 0 0 unless (unlink $index)
204 0 0 if (-e $index)
215 0 0 if (not opendir($dh, $filesdir)) { }
216 0 0 if (-e $filesdir)
235 0 0 if ($files[$int] eq '.' or $files[$int] eq '..')
243 0 0 unless (-f $path or $skip)
251 0 0 unless ($skip)
252 0 0 unless (unlink $path)
262 0 0 if (not defined $nonfiles[0] && defined $failed[0] and -e $filesdir)
269 0 0 unless (rmdir $filesdir)
276 0 0 unless (-e $filesdir)
277 0 0 if (not opendir($dh, $dir)) { }
284 0 0 if (opendir $dh, $filesdir)
292 0 0 if ($files[$int] ne '.' or $files[$int] ne '..')
302 0 0 if ($rmObjDir)
303 0 0 unless (rmdir $dir)
311 0 0 if (defined $nonfiles[0] or $openFilesdirFailed or $indexNotAfile or $fileDirRMfailed or $objDirRMfailed or defined $failed[0])
322 0 0 if ($indexNotAfile)
326 0 0 if ($openFilesdirFailed)
330 0 0 if ($fileDirRMfailed)
334 0 0 if ($objDirRMfailed)
340 0 0 if (defined $nonfiles[0])
349 0 0 if (defined $failed[0])