blib/lib/Poet/Mason/Plugin/Compilation.pm

filter: Statementstmt 100% 7 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 9 / 9 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« blib/lib/Poet/Mason/Plugin.pm ↑ Summary blib/lib/Poet/Plack/Request.pm »
1 package Poet::Mason::Plugin::Compilation;
2 2 $Poet::Mason::Plugin::Compilation::VERSION = '0.16';
3 2 ▶use Mason::PluginRole;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 # Add 'use Poet qw($conf $poet :web)' at the top of every component
6 #
7 14 ▶override 'output_class_header' => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
8 14 return join( "\n", super(), 'use Poet qw($conf $poet :web);' );
9 2 };
10  
11 2 1;
« blib/lib/Poet/Mason/Plugin.pm ↑ Summary blib/lib/Poet/Plack/Request.pm »