File Coverage

blib/lib/Dancer2/Core/Role/Handler.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             # ABSTRACT: Role for Handlers
2             $Dancer2::Core::Role::Handler::VERSION = '0.400000';
3             use Moo::Role;
4 143     143   1046584 use Dancer2::Core::Types;
  143         375  
  143         877  
5 143     143   61530  
  143         392  
  143         1221  
6             requires 'register';
7              
8             has app => (
9             is => 'ro',
10             isa => InstanceOf ['Dancer2::Core::App'],
11             weak_ref => 1,
12             );
13              
14             1;
15              
16              
17             =pod
18              
19             =encoding UTF-8
20              
21             =head1 NAME
22              
23             Dancer2::Core::Role::Handler - Role for Handlers
24              
25             =head1 VERSION
26              
27             version 0.400000
28              
29             =head1 ATTRIBUTES
30              
31             =head2 app
32              
33             Contain an object of class L<Dancer2::Core::App>.
34              
35             =head1 REQUIREMENTS
36              
37             This role requires the method C<register> to be implemented.
38              
39             =head1 AUTHOR
40              
41             Dancer Core Developers
42              
43             =head1 COPYRIGHT AND LICENSE
44              
45             This software is copyright (c) 2022 by Alexis Sukrieh.
46              
47             This is free software; you can redistribute it and/or modify it under
48             the same terms as the Perl 5 programming language system itself.
49              
50             =cut