Middleware/Role.pm

filter: Statementstmt 83.3% 10 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 77.7% 14 / 18 SCAR 0.0
CC
1
Cov
83%
log
2.0
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« Middleware/Status/Base.pm ↑ Summary Middleware/Profile/Role.pm »
1 package HTTP::Engine::Middleware::Role;
2 16 ▶use Any::Moose '::Role';
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 has 'before_handles' => (
5 is => 'ro',
6 isa => 'ArrayRef',
7 1 ▶ default => sub { +[] },
Subroutine __ANON__: called CC=1 SCAR=0.0
8 16 );
9  
10 has 'after_handles' => (
11 is => 'ro',
12 isa => 'ArrayRef',
13 1 ▶ default => sub { +[] },
Subroutine __ANON__: called CC=1 SCAR=0.0
14 16 );
15  
16  
17 has 'logger' => (
18 is => 'rw',
19 isa => 'CodeRef',
20 required => 1,
21 58 ▶ default => sub { sub {} },
Subroutine __ANON__: called CC=1 SCAR=0.0
22 16 );
23  
24 sub log {
25 0 ▶ my($self, $level, $msg) = @_;
Subroutine log: not called CC=1 SCAR=6.9
Pod undocumented
26 0 $self->logger->( $level => $msg );
27 }
28  
29 16 1;
30  
« Middleware/Status/Base.pm ↑ Summary Middleware/Profile/Role.pm »