blib/lib/Plack/Handler/Arriba.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 10 | 10 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | 0 | 2 | 0.0 |
total | 14 | 16 | 87.5 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Plack::Handler::Arriba; | ||||||
2 | |||||||
3 | 16 | 16 | 124848 | use strict; | |||
16 | 328 | ||||||
16 | 23280 | ||||||
4 | |||||||
5 | # ABSTRACT: Plack adapter for Arriba | ||||||
6 | |||||||
7 | 16 | 16 | 22704 | use Arriba::Server; | |||
16 | 56 | ||||||
16 | 2232 | ||||||
8 | |||||||
9 | sub new { | ||||||
10 | 16 | 16 | 0 | 1168 | my $class = shift; | ||
11 | 16 | 192 | bless { @_ }, $class; | ||||
12 | } | ||||||
13 | |||||||
14 | sub run { | ||||||
15 | 16 | 16 | 0 | 2392 | my ($self, $app) = @_; | ||
16 | |||||||
17 | 16 | 480 | Arriba::Server->new->run($app, {%$self}); | ||||
18 | } | ||||||
19 | |||||||
20 | 1; | ||||||
21 | |||||||
22 | __END__ |