blib/lib/Web/Authenticate/Session/Handler/Role.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use strict;
2 package Web::Authenticate::Session::Handler::Role;
3 $Web::Authenticate::Session::Handler::Role::VERSION = '0.004';
4 use Mouse::Role;
5 #ABSTRACT: A Mouse::Role that defines what methods a Web::Authenticate::Session::Handler object should contain.
6  
7  
8 requires 'create_session';
9  
10  
11 requires 'delete_session';
12  
13  
14 requires 'update_expires';
15  
16  
17 requires 'invalidate_user_sessions';
18  
19  
20 requires 'get_session';
21  
22 1;
23  
24 __END__
25  
26 =pod
27  
28 =encoding UTF-8
29  
30 =head1 NAME
31  
32 Web::Authenticate::Session::Handler::Role - A Mouse::Role that defines what methods a Web::Authenticate::Session::Handler object should contain.
33  
34 =head1 VERSION
35  
36 version 0.004
37  
38 =head1 METHODS
39  
40 =head2 create_session
41  
42 Creates a session for user. Returns an object that does L<Web::Authenticate::Session::Role>.
43  
44 my $session = $session_handler->create_session($user);
45  
46 =head2 delete_session
47  
48 Deletes the current session.
49  
50 $session_handler->delete_session;
51  
52 =head2 update_expires
53  
54 Updates the expires time for session. Returns an object that does L<Web::Authenticate::Session::Role>.
55  
56 my $updated_session = $session_handler->update_expires($session);
57  
58 =head2 invalidate_user_sessions
59  
60 Invalidates all sessions for a user.
61  
62 $session_handler->invalidate_user_sessions($user);
63  
64 =head2 get_session
65  
66 Returns the session for the current user. Returns undef if there is no session.
67  
68 my $session = $session_handler->get_session;
69  
70 =head1 AUTHOR
71  
72 Adam Hopkins <srchulo@cpan.org>
73  
74 =head1 COPYRIGHT AND LICENSE
75  
76 This software is copyright (c) 2017 by Adam Hopkins.
77  
78 This is free software; you can redistribute it and/or modify it under
79 the same terms as the Perl 5 programming language system itself.
80  
81 =cut