lib/Perl/Critic/Exception.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 100% 25 / 25 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« script/perlcritic ↑ Summary lib/Perl/Critic/Exception/Configuration.pm »
1 package Perl::Critic::Exception;
2  
3 40 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 40 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 40 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 40 our $VERSION = '1.156';
8  
9 #-----------------------------------------------------------------------------
10  
11 40 ▶use Exception::Class (
Subroutine BEGIN: called CC=1 SCAR=0.0
12 40 'Perl::Critic::Exception' => {
13 isa => 'Exception::Class::Base',
14 description => 'A problem discovered by Perl::Critic.',
15 },
16 40 );
17  
18 40 ▶use Exporter 'import';
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 #-----------------------------------------------------------------------------
21  
22 10 ▶sub short_class_name {
Subroutine short_class_name: called CC=1 SCAR=0.0
Pod documented
23 10 my ( $self ) = @_;
24  
25 10 return substr ref $self, (length 'Perl::Critic') + 2;
26 }
27  
28 #-----------------------------------------------------------------------------
29  
30  
31 40 1;
32  
33 __END__
« script/perlcritic ↑ Summary lib/Perl/Critic/Exception/Configuration.pm »