File Coverage

blib/lib/Mojolicious/Sessions/ThreeS/SidGen.pm
Criterion Covered Total %
statement 6 7 85.7
branch n/a
condition n/a
subroutine 2 3 66.6
pod 1 1 100.0
total 9 11 81.8


line stmt bran cond sub pod time code
1             package Mojolicious::Sessions::ThreeS::SidGen;
2             $Mojolicious::Sessions::ThreeS::SidGen::VERSION = '0.003';
3 2     2   764 use Mojo::Base -base;
  2         3  
  2         11  
4 2     2   205 use Carp;
  2         2  
  2         144  
5              
6             =head1 NAME
7              
8             Mojolicious::Sessions::ThreeS::SidGen - Session ID generator base class
9              
10             =head1 SYNOPSIS
11              
12             This is an abstract class that you can inherit from to implement session ID generation.
13              
14             To use this, inherit from it using C and implement the methods marked as ABSTRACT.
15              
16             =cut
17              
18             =head2 generate_sid
19              
20             ABSTRACT
21              
22             Generates a brand new session ID.
23              
24             Called with the current mojolicious controller by the framework:
25              
26             my $new_sid = $this->generate_sid( $controller );
27              
28             =cut
29              
30             sub generate_sid{
31 0     0 1   confess("Implement this");
32             }
33              
34             1;