File Coverage

blib/lib/Password/Policy/Exception/Pwned.pm
Criterion Covered Total %
statement 10 10 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 1 1 100.0
total 15 15 100.0


line stmt bran cond sub pod time code
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     4   50424 use strict;
  4         8  
  4         83  
19 4     4   15 use warnings;
  4         6  
  4         108  
20              
21             package Password::Policy::Exception::Pwned;
22            
23 4     4   353 use parent 'Password::Policy::Exception';
  4         262  
  4         14  
24              
25             our $VERSION = '0.01';
26              
27 6     6 1 537 sub error { return 'The specified password has been pwned'; }
28              
29             __END__