lib/Dancer2/Core/Role/Engine.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« examples/single/simple_calculator.psgi ↑ Summary lib/Dancer2/Core/Role/Handler.pm »
1 package Dancer2::Core::Role::Engine;
2 # ABSTRACT: Role for engines
3 182 $Dancer2::Core::Role::Engine::VERSION = '2.3.0';
4 182 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 182 ▶use Dancer2::Core::Types;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 182 with 'Dancer2::Core::Role::Hookable';
8  
9 182 has session => (
10 is => 'ro',
11 isa => InstanceOf['Dancer2::Core::Session'],
12 writer => 'set_session',
13 clearer => 'clear_session',
14 predicate => 'has_session',
15 );
16  
17 has config => (
18 is => 'ro',
19 isa => HashRef,
20 559 ▶ default => sub { {} },
Subroutine __ANON__: called CC=1 SCAR=0.0
21 182 );
22  
23 182 has request => (
24 is => 'ro',
25 isa => InstanceOf['Dancer2::Core::Request'],
26 writer => 'set_request',
27 clearer => 'clear_request',
28 predicate => 'has_request',
29 );
30  
31 182 1;
32  
33 __END__
« examples/single/simple_calculator.psgi ↑ Summary lib/Dancer2/Core/Role/Handler.pm »