Exception/Pwned.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Rule/Pwned.pm ↑ Summary Exception/PwnedError.pm »
1 #
2 #===============================================================================
3 #
4 # FILE: Pwned.pm
5 #
6 # DESCRIPTION: Throw an exception for a pwned password
7 #
8 # FILES: ---
9 # BUGS: ---
10 # NOTES: ---
11 # AUTHOR: Pete Houston, cpan@openstrike.co.uk
12 # ORGANIZATION: Openstrike
13 # VERSION: See $VERSION in code
14 # CREATED: 29/05/18 14:42:12
15 # REVISION: ---
16 #===============================================================================
17  
18 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 package Password::Policy::Exception::Pwned;
22
23 4 ▶use parent 'Password::Policy::Exception';
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 4 our $VERSION = '0.03';
26  
27 12 ▶sub error { return 'The specified password has been pwned'; }
Subroutine error: called CC=1 SCAR=0.0
Pod documented
28  
29 __END__
« Rule/Pwned.pm ↑ Summary Exception/PwnedError.pm »