blib/lib/Amon2/Plugin/Web/PlackSession.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 27 CC 1 SCAR 6.9
CC
1
Cov
0%
init
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use strict;
2 use warnings;
3 use utf8;
4  
5 package Amon2::Plugin::Web::PlackSession;
6 use Plack::Session;
7  
8 sub init {
9 my ($class, $context_class, $conf) = @_;
10  
11 no strict 'refs';
12 *{"${context_class}::session"} = sub {
13 Plack::Session->new($_[0]->request->env)
14 };
15 }
16  
17 1;
18 __END__