Branch Coverage

blib/lib/PFT/Content/Entry.pm
Criterion Covered Total %
branch 18 28 64.2


line true false branch
92 1 61 unless $self->exists
93 1 60 unless eval { do { 'PFT::Header'->load($self->open('r')) } }
112 1 21 unless $self->exists
118 1 20 unless my $h = eval { do { 'PFT::Header'->load($fh) } }
121 3 17 wantarray ? :
133 0 0 unless defined $h
137 0 0 if /\S/u
155 0 3 unless $hdr->isa('PFT::Header')
159 2 1 if ($self->exists and not $self->empty)
184 1 0 if (defined $pdate)
186 1 0 if (defined $hdt and defined $hdt->y and defined $hdt->m) { }
187 1 0 if $hdt <=> $pdate
197 1 0 if ($hdr->slug ne $self->tree->detect_slug($self))
201 1 0 if ($rename)