blib/lib/Mason/Plugin/Defer/Filters.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 8 | 8 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | n/a | ||
total | 12 | 12 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Mason::Plugin::Defer::Filters; | ||||||
2 | $Mason::Plugin::Defer::Filters::VERSION = '2.24'; | ||||||
3 | 19 | 19 | 12283 | use Mason::PluginRole; | |||
19 | 36 | ||||||
19 | 158 | ||||||
4 | |||||||
5 | 19 | 19 | 96964 | method Defer () { | |||
1 | 1 | 2 | |||||
1 | 1 | ||||||
6 | Mason::DynamicFilter->new( | ||||||
7 | filter => sub { | ||||||
8 | 1 | 1 | 22 | $self->m->defer( $_[0] ); | |||
9 | } | ||||||
10 | 1 | 34 | ); | ||||
11 | } | ||||||
12 | |||||||
13 | 1; |