File Coverage

blib/lib/Auth/Kokolores/Plugin.pm
Criterion Covered Total %
statement 3 15 20.0
branch n/a
condition n/a
subroutine 1 7 14.2
pod 0 6 0.0
total 4 28 14.2


line stmt bran cond sub pod time code
1             package Auth::Kokolores::Plugin;
2              
3 3     3   2656 use Moose;
  3         5  
  3         15  
4              
5             # ABSTRACT: base class for kokolores plugins
6             our $VERSION = '1.01'; # VERSION
7              
8             has 'name' => ( is => 'ro', isa => 'Str', required => 1 );
9              
10             has 'server' => (
11             is => 'ro',
12             isa => 'Net::Server',
13             required => 1,
14             handles => {
15             log => 'log',
16             },
17             );
18              
19             sub init {
20 0     0 0   my ( $self ) = @_;
21 0           return;
22             }
23              
24             sub child_init {
25 0     0 0   my ( $self, $server ) = @_;
26 0           return;
27             }
28              
29             sub pre_process {
30 0     0 0   my ( $self, $r ) = @_;
31 0           return;
32             }
33              
34             sub authenticate {
35 0     0 0   my ( $self, $r ) = @_;
36 0           return;
37             }
38              
39             sub post_process {
40 0     0 0   my ( $self, $r, $response ) = @_;
41 0           return;
42             }
43              
44             sub shutdown {
45 0     0 0   my ( $self ) = @_;
46 0           return;
47             }
48              
49             1;
50              
51             __END__
52              
53             =pod
54              
55             =encoding UTF-8
56              
57             =head1 NAME
58              
59             Auth::Kokolores::Plugin - base class for kokolores plugins
60              
61             =head1 VERSION
62              
63             version 1.01
64              
65             =head1 AUTHOR
66              
67             Markus Benning <ich@markusbenning.de>
68              
69             =head1 COPYRIGHT AND LICENSE
70              
71             This software is Copyright (c) 2016 by Markus Benning <ich@markusbenning.de>.
72              
73             This is free software, licensed under:
74              
75             The GNU General Public License, Version 2, June 1991
76              
77             =cut