Branch Coverage

blib/lib/Dancer2/Plugin/MarkdownFilesToHTML.pm
Criterion Covered Total %
branch 37 52 71.1


line true false branch
41 0 1 if (ref $route ne 'HASH')
74 1 5 ref $options->{$path} ? :
83 0 6 if $options{'route_root'}
84 2 4 if $options{'generate_toc'}
87 6 0 unless ($is_abs)
101 5 1 if (not $options->{'set'}) { }
108 0 6 unless (-e $s->options->{'resource'})
112 0 0 wantarray ? :
119 2 4 if (-f $s->options->{'resource'}) { }
124 0 4 if (@{$s->options->{'include_files'};}) { }
127 0 4 unless opendir my $d, $dir
134 0 4 if @matching_files
150 3 3 wantarray ? :
164 1 65 unless (-d $cache_dir)
165 0 1 unless make_path($cache_dir)
178 16 0 if (-f $cache_file and $s->options->{'cache'})
179 16 0 if (-M $cache_file eq -M $file)
180 16 0 if $ENV{'DANCER_ENVIRONMENT'} and $ENV{'DANCER_ENVIRONMENT'} eq 'testing'
191 0 50 unless open my $md, '<:encoding(UTF-8)', $file
200 345 75 unless ($code_el->left or $code_el->right)
207 17 16 unless ($s->options->{'linkable_headers'} or $s->options->{'header_class'})
209 17 0 if $s->options->{'cache'}
215 16 17 if $s->options->{'generate_toc'}
221 117 129 if $s->options->{'header_class'}
222 117 129 if ($s->options->{'generate_toc'})
233 16 17 $toc ? :