Branch Coverage

blib/lib/Toader/Page.pm
Criterion Covered Total %
branch 0 190 0.0


line true false branch
84 0 0 if (defined $_[1])
120 0 0 unless (defined $args{'renderer'})
124 0 0 unless (defined $args{'summary'})
128 0 0 unless (defined $args{'name'})
136 0 0 unless (defined $args{'from'})
140 0 0 unless (defined $args{'body'})
144 0 0 unless (defined $args{'publish'})
148 0 0 if ($args{'publish'} ne '0' and $args{'publish'} ne '1')
162 0 0 if (defined $args{'files'})
163 0 0 if (ref($args{'files'} ne 'ARRAY'))
173 0 0 unless (-f $args{'files'}[$int])
185 0 0 unless (defined $mimetype)
195 0 0 unless (open $fh, '<', $args{'files'}[$int])
217 0 0 unless (defined $part)
243 0 0 unless (defined $mime)
252 0 0 if (defined $parts[0])
259 0 0 unless (defined $args{'toader'})
266 0 0 if (ref $args{'toader'} ne 'Toader')
277 0 0 if ($self->{'toader'}->error)
288 0 0 if ($self->{'vcs'}->error)
353 0 0 unless (defined $string)
363 0 0 unless (defined $mime)
372 0 0 unless (defined $mime->header('name'))
381 0 0 unless (defined $mime->header('from'))
386 0 0 unless (defined $mime->header('summary'))
392 0 0 unless (defined $mime->header('renderer'))
397 0 0 unless (defined $mime->header('publish'))
402 0 0 if ($mime->header('publish') ne '0' and $mime->header('publish') ne '1')
417 0 0 unless (defined $toader)
424 0 0 if (ref $toader ne 'Toader')
435 0 0 if ($toader->error)
446 0 0 if ($self->{'vcs'}->error)
474 0 0 unless ($self->errorblank)
495 0 0 unless ($self->errorblank)
503 0 0 unless (defined $parts[$int]->filename)
530 0 0 unless ($self->errorblank)
534 0 0 unless (defined $body)
544 0 0 if (defined $parts[1])
547 0 0 unless (defined $parts[$int]->filename)
580 0 0 unless ($self->errorblank)
604 0 0 unless ($self->errorblank)
615 0 0 unless ($returned)
641 0 0 unless ($self->errorblank)
665 0 0 unless ($self->errorblank)
669 0 0 unless (defined $from)
695 0 0 unless ($self->errorblank)
719 0 0 unless ($self->errorblank)
723 0 0 unless (defined $name)
749 0 0 unless ($self->errorblank)
756 0 0 unless (defined $publish)
761 0 0 if ($publish ne '0' and $publish ne '1')
795 0 0 unless ($self->errorblank)
799 0 0 unless (defined $publish)
803 0 0 if ($publish ne '0' and $publish ne '1')
833 0 0 unless ($self->errorblank)
859 0 0 unless ($self->errorblank)
863 0 0 unless (defined $renderer)
889 0 0 unless ($self->errorblank)
894 0 0 unless (defined $file)
902 0 0 unless (-f $file)
913 0 0 unless (defined $mimetype)
926 0 0 unless (open $fh, '<', $file)
969 0 0 unless ($self->errorblank)
973 0 0 unless (defined $dir)
981 0 0 unless (-d $dir)
989 0 0 if ($self->error)
995 0 0 unless (defined $subparts[0])
1002 0 0 if (defined $file)
1006 0 0 unless (open $fh, '>', $file)
1038 0 0 unless ($self->errorblank)
1059 0 0 unless ($self->errorblank)
1064 0 0 if ($self->error)
1072 0 0 if (defined $subparts[$int]->filename)
1100 0 0 unless ($self->errorblank)
1105 0 0 unless (defined $file)
1117 0 0 if (not defined $partFilename or $file ne $partFilename)
1144 0 0 unless ($self->errorblank)
1150 0 0 unless (defined $summary)
1174 0 0 unless ($self->errorblank)
1178 0 0 unless (defined $summary)
1205 0 0 unless ($self->errorblank)
1210 0 0 unless (defined $self->{'dir'})
1218 0 0 unless (-d $self->{'dir'} . '/.toader/')
1226 0 0 unless (-d $self->{'dir'} . '/.toader/pages/')
1227 0 0 unless (make_path($self->{'dir'} . '/.toader/pages/'))
1243 0 0 unless (open $fh, '>', $file)
1253 0 0 unless ($self->{'VCSusable'})
1259 0 0 if ($self->{'vcs'}->error)
1266 0 0 if ($underVCS)
1272 0 0 if ($self->{'vcs'}->error)
1297 0 0 unless ($self->errorblank)
1301 0 0 unless (defined $self->{'mime'}->header('name'))
1323 0 0 unless ($self->errorblank)
1377 0 0 unless ($self->errorblank)
1381 0 0 unless (defined $self->{'entryName'})