blib/lib/Plack/App/Directory/Markdown.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 15 | 31 | 48.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
76 | 4 | 0 | 4 | -f -r $file and $self->is_markdown($file) |
198 | 0 | 0 | 8 | $root and not $root =~ m[/$] |
line | l | !l | condition |
---|---|---|---|
58 | 0 | 2 | $self->markdown_class || 'Text::Markdown' |
72 | 2 | 0 | $self->root // '.' |
116 | 0 | 2 | $self->title || 'Markdown' |
172 | 0 | 2 | $self->title || 'Markdown' |
196 | 8 | 0 | $self->root || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
31 | 0 | 2 | 0 | $self->tx_path || () |
57 | 0 | 2 | 0 | $self->{'_md'} ||= do { my $cls = $self->markdown_class || 'Text::Markdown'; Plack::Util::load_class($cls); $cls->new } |
69 | 0 | 2 | 0 | $self->{'_md_files'} ||= do { my @files; my $rule = 'Path::Iterator::Rule'->new; my $iter = $rule->iter($self->root // '.', {'depthfirst', 1}); while (defined(my $file = &$iter())) { do { push @files, $self->remove_root_path($file) if -f -r $file and $self->is_markdown($file) }; }; \@files } |
148 | 2 | 2 | 2 | $ent eq '.' or $ent eq '..' |
157 | 0 | 0 | 2 | $is_dir or $self->is_markdown($file) |