Branch Coverage

blib/lib/HiD.pm
Criterion Covered Total %
branch 23 66 34.8


line true false branch
44 0 0 unless $self->posts
77 24 2 if (my $file = $self->config_file)
80 0 19 unless ref $config eq 'HASH'
85 7 19 unless $config_loaded
221 0 30 if (my $embedded_layout = $metadata->{'layout'})
223 0 0 unless $layouts{$embedded_layout}
279 109 35 if ($self->seen_input($_) or $_ =~ /^_/u) { }
324 0 15 if (my $plugin_list = $self->config->{'plugins'})
325 0 0 ref $plugin_list eq 'ARRAY' ? :
330 0 0 /^\+/u ? :
332 0 0 unless _load_plugin_or_warn($plugin_name)
337 0 15 if (my $plugin_dir = $self->plugin_dir)
348 0 0 unless _load_plugin_or_warn($m)
361 0 0 unless $lrlt
364 0 0 unless $plugin->isa('HiD::Plugin') or $plugin->does('HiD::Plugin') or $plugin->does('HiD::Generator')
418 0 15 if ($self->get_config('publish_drafts'))
441 0 15 if (my $limit = $self->limit_posts)
442 0 0 if $limit < 1
525 181 25 if ($self->seen_input($_) or $_ =~ /^_/u) { }
0 25 elsif ($_ =~ /^\.git/u) { }
0 25 elsif ($_ =~ /^\.svn/u or $_ =~ m[/\.svn/]u) { }
580 0 0 unless $self->posts
615 0 16 if (-e $self->destination and $self->get_config('clean_destination'))
635 0 0 if ($plugin->does('HiD::Generator'))
640 0 15 if ($self->config->{'pagination'})
642 0 0 unless my $entries_per_page = $self->config->{'pagination'}{'entries'}
645 0 0 unless my $page_fstring = $self->config->{'pagination'}{'page'}
648 0 0 unless my $template = $self->config->{'pagination'}{'template'}
685 15 0 if ($self->remove_unwritten_files)
687 212 1 if $self->wrote_file($_)
690 0 1 $path->is_dir ? :
694 0 15 unless $self->plugins
699 0 0 if ($plugin->does('HiD::Plugin') or $plugin->isa('HiD::Plugin'))