| 1 | package Password::Policy::Exception; | ||||||||||||
| 2 | 13 | $Password::Policy::Exception::VERSION = '0.06'; | |||||||||||
| 3 | 13 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 13 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | |||||||||||||
| 6 | use overload | ||||||||||||
| 7 | 27 | ▶ | '""' => sub { shift->error }, | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||
| 8 | 13 | 'cmp' => \&_three_way_compare; | |||||||||||
| 9 | |||||||||||||
| 10 | |||||||||||||
| 11 | 27 | ▶ | sub new { bless {} => shift; } | ||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 12 | 1 | ▶ | sub error { return "An unspecified exception was thrown."; } | ||||||||||
|
Subroutine
error: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 13 | 27 | ▶ | sub throw { die shift->new; } | ||||||||||
|
Subroutine
throw: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 14 | |||||||||||||
| 15 | 0 | ▶ | sub _three_way_compare { | ||||||||||
|
Subroutine
_three_way_compare: not called CC=2 SCAR=17.9
| |||||||||||||
| 16 | 0 | my $self = shift; | |||||||||||
| 17 | 0 | ▶ | my $other = shift || ''; | ||||||||||
|
Condition0%0/2
shift() || ''
MC/DC0%0/1
shift() || ''
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||
| 18 | 0 | return $self->error cmp "$other"; | |||||||||||
| 19 | } | ||||||||||||
| 20 | |||||||||||||
| 21 | 13 | 1; | |||||||||||
| 22 | |||||||||||||
| 23 | __END__ | ||||||||||||