blib/lib/Web/Authenticate/User/CredentialVerifier/Role.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 13 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::User::CredentialVerifier::Role;
3 $Web::Authenticate::User::CredentialVerifier::Role::VERSION = '0.003';
4 use Mouse::Role;
5 #ABSTRACT: A Mouse::Role that defines what methods a Web::Authenticate::User::CredentialVerifier object should contain.
6  
7  
8 requires 'verify';
9  
10  
11 requires 'name';
12  
13  
14 requires 'error_msg';
15  
16 1;
17  
18 __END__
19  
20 =pod
21  
22 =encoding UTF-8
23  
24 =head1 NAME
25  
26 Web::Authenticate::User::CredentialVerifier::Role - A Mouse::Role that defines what methods a Web::Authenticate::User::CredentialVerifier object should contain.
27  
28 =head1 VERSION
29  
30 version 0.003
31  
32 =head1 METHODS
33  
34 =head2 verify
35  
36 Verifies a user credential. Returns 1 if it verifies, undef otherwise
37  
38 if(not $credential_verifier->verify($password)) {
39 # invalid password!
40 }
41  
42 =head2 name
43  
44 Returns the name of this verifier.
45  
46 =head2 error_msg
47  
48 Returns the error message if this verifier fails
49  
50 =head1 AUTHOR
51  
52 Adam Hopkins <srchulo@cpan.org>
53  
54 =head1 COPYRIGHT AND LICENSE
55  
56 This software is copyright (c) 2017 by Adam Hopkins.
57  
58 This is free software; you can redistribute it and/or modify it under
59 the same terms as the Perl 5 programming language system itself.
60  
61 =cut