blib/lib/PAD/Plugin/Static.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 14 | 85.7 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 5 | 80.0 |
pod | 1 | 1 | 100.0 |
total | 17 | 20 | 85.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package PAD::Plugin::Static; | ||||||
2 | 1 | 1 | 797 | use strict; | |||
1 | 2 | ||||||
1 | 29 | ||||||
3 | 1 | 1 | 5 | use warnings; | |||
1 | 1 | ||||||
1 | 25 | ||||||
4 | 1 | 1 | 6 | use parent 'PAD::Plugin'; | |||
1 | 1 | ||||||
1 | 6 | ||||||
5 | 1 | 1 | 50 | use Plack::App::File; | |||
1 | 2 | ||||||
1 | 76 | ||||||
6 | |||||||
7 | sub execute { | ||||||
8 | 0 | 0 | 1 | my $self = shift; | |||
9 | 0 | Plack::App::Directory->new->to_app->($self->request->env); | |||||
10 | } | ||||||
11 | |||||||
12 | 1; | ||||||
13 | __END__ |