Branch Coverage

blib/lib/Toader/Directory.pm
Criterion Covered Total %
branch 0 120 0.0


line true false branch
72 0 0 unless (defined $toader)
80 0 0 if (ref $toader ne 'Toader')
91 0 0 if ($toader->error)
102 0 0 if ($self->{'vcs'}->error)
128 0 0 unless ($self->errorblank)
149 0 0 unless ($self->errorblank)
157 0 0 unless (defined $parts[$int]->filename)
184 0 0 unless ($self->errorblank)
188 0 0 unless (defined $body)
198 0 0 if (defined $parts[1])
201 0 0 unless (defined $parts[$int]->filename)
234 0 0 unless ($self->errorblank)
259 0 0 unless ($self->errorblank)
266 0 0 unless ($returned)
284 0 0 if (defined $self->{'mime'})
288 0 0 if (not -f $self->{'indexfile'}) { }
299 0 0 unless (open $fh, '<', $self->{'indexfile'})
334 0 0 unless ($self->errorblank)
338 0 0 unless (defined $self->{'dir'})
346 0 0 unless (opendir $dh, $self->{'dir'})
362 0 0 unless (-d $self->{'dir'} . '/' . $dirEntries[$int])
366 0 0 if ($dirEntries[$int] =~ /^\./)
370 0 0 if ($add)
372 0 0 if ($returned)
397 0 0 unless ($self->errorblank)
423 0 0 unless ($self->errorblank)
427 0 0 unless (defined $renderer)
453 0 0 unless ($self->errorblank)
458 0 0 unless (defined $file)
466 0 0 unless (-f $file)
477 0 0 unless (defined $mimetype)
490 0 0 unless (open $fh, '<', $file)
533 0 0 unless ($self->errorblank)
537 0 0 unless (defined $dir)
545 0 0 unless (-d $dir)
553 0 0 if ($self->error)
559 0 0 unless (defined $subparts[0])
566 0 0 if (defined $file)
570 0 0 unless (open $fh, '>', $file)
602 0 0 unless ($self->errorblank)
623 0 0 unless ($self->errorblank)
628 0 0 if ($self->error)
636 0 0 if (defined $subparts[$int]->filename)
664 0 0 unless ($self->errorblank)
669 0 0 unless (defined $file)
681 0 0 if (not defined $partFilename or $file ne $partFilename)
708 0 0 unless ($self->errorblank)
714 0 0 unless (defined $summary)
738 0 0 unless ($self->errorblank)
742 0 0 unless (defined $summary)
769 0 0 unless ($self->errorblank)
774 0 0 unless (defined $self->{'dir'})
782 0 0 unless (-d $self->{'dir'} . '/.toader/')
796 0 0 unless (open $fh, '>', $file)
807 0 0 if ($self->{'vcs'}->error)
814 0 0 if ($underVCS)
820 0 0 if ($self->{'vcs'}->error)
845 0 0 unless ($self->errorblank)
863 0 0 unless ($self->errorblank)
917 0 0 unless ($self->errorblank)