blib/lib/Kelp/Module/Template/Null.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 11 | 11 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 2 | 2 | 100.0 |
total | 18 | 18 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Kelp::Module::Template::Null; | ||||||
2 | 1 | 1 | 487 | use Kelp::Base 'Kelp::Module::Template'; | |||
1 | 2 | ||||||
1 | 7 | ||||||
3 | 1 | 1 | 65 | use Plack::Util; | |||
1 | 2 | ||||||
1 | 173 | ||||||
4 | |||||||
5 | attr ext => 'null'; | ||||||
6 | |||||||
7 | sub build_engine { | ||||||
8 | 1 | 1 | 1 | 3 | my ( $self, %args ) = @_; | ||
9 | 1 | 2 | 5 | Plack::Util::inline_object( render => sub { "All the ducks" } ); | |||
2 | 44 | ||||||
10 | } | ||||||
11 | |||||||
12 | sub render { | ||||||
13 | 2 | 2 | 1 | 4 | my ( $self, $template, $vars, @rest ) = @_; | ||
14 | 2 | 5 | $self->engine->render(); | ||||
15 | } | ||||||
16 | |||||||
17 | 1; |