Branch Coverage

blib/lib/HiD/Post.pm
Criterion Covered Total %
branch 8 12 66.6


line true false branch
31 1 56 if (defined $self->get_metadata('published') and not $self->get_metadata('published'))
50 29 24 unless $dir->is_dir
63 0 53 if ($self->get_config('publish_drafts'))
64 0 0 if ($self->is_draft)
71 0 53 unless $basename =~ s/^.*?$date_regex-//u
91 49 4 if exists $formats{$permalink_format}