Sessions/ThreeS/SidGen.pm

filter: Statementstmt 88.8% 8 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 100% 1 / 1 totaltotal 84.6% 11 / 13 CC 1 SCAR 2.9
CC
1
Cov
89%
generate_sid
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Sessions/ThreeS/Storage/Memory.pm ↑ Summary Sessions/ThreeS/SidGen/Simple.pm »
1 package Mojolicious::Sessions::ThreeS::SidGen;
2 3 $Mojolicious::Sessions::ThreeS::SidGen::VERSION = '0.004';
3 3 ▶use Mojo::Base -base;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
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<Mojo::Base> 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 0 ▶sub generate_sid{
Subroutine generate_sid: not called CC=1 SCAR=6.9
Pod documented
31 0 confess("Implement this");
32 }
33  
34 3 1;
« Sessions/ThreeS/Storage/Memory.pm ↑ Summary Sessions/ThreeS/SidGen/Simple.pm »