Branch Coverage

blib/lib/Dancer2/Plugin/MarkdownFilesToHTML.pm
Criterion Covered Total %
branch 39 50 78.0


line true false branch
40 0 3 if (ref $route ne 'HASH')
67 3 5 ref $options->{$path} ? :
76 1 7 if $options{'prefix'}
77 3 5 if $options{'generate_toc'}
79 8 0 unless ('File::Spec'->file_name_is_absolute($options{'resource'}))
90 5 3 if (not $options->{'set'}) { }
98 1 7 unless (-e $s->options->{'resource'})
111 4 3 wantarray ? :
118 3 4 if (-f $s->options->{'resource'}) { }
123 0 4 if (@{$s->options->{'include_files'};}) { }
126 0 4 unless opendir my $d, $dir
133 0 4 if @matching_files
156 1 66 unless (-d $cache_dir)
157 0 1 unless make_path($cache_dir)
175 17 0 if (-f $cache_file and $s->options->{'cache'})
176 17 0 if (-M $cache_file eq -M $file)
177 17 0 if $ENV{'DANCER_ENVIRONMENT'} and $ENV{'DANCER_ENVIRONMENT'} eq 'testing'
188 0 50 unless open my $md, '<:encoding(UTF-8)', $file
197 345 75 unless ($code_el->left or $code_el->right)
203 17 16 unless ($s->options->{'linkable_headers'} or $s->options->{'header_class'})
205 17 0 if $s->options->{'cache'}
211 16 17 if $s->options->{'generate_toc'}
217 117 129 if $s->options->{'header_class'}
218 117 129 if ($s->options->{'generate_toc'})
229 16 17 $toc ? :