Config/Error.pm

filter: Statementstmt 93.7% 15 / 16 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 91.3% 21 / 23 CC 2 SCAR 3.8
CC
2
Cov
89%
new
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« Config.pm ↑ Summary Config/LoadError.pm »
1 =head1 NAME
2  
3 Pipeline::Config::Error - base Error class for this project.
4  
5 =head1 SYNOPSIS
6  
7 # see Error.pm
8  
9 =cut
10  
11 package Pipeline::Config::Error;
12  
13 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use warnings::register;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 1 ▶use base qw( Error );
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 1 our $VERSION = ((require Pipeline::Config), $Pipeline::Config::VERSION)[1];
19 1 our $REVISION = (split(/ /, ' $Revision: 1.2 $ '))[2];
20  
21 4 ▶sub new {
Subroutine new: called CC=2 SCAR=7.6
Pod documented
22 4 my $class = shift;
23 4 local $Error::Depth = $Error::Depth + 1;
24 4 ▶ return $class->SUPER::new( -text => shift ) if (scalar(@_) == 1);
Branch: 1 branch
BranchTrueFalseTotal
if scalar @_ == 1 4 0 4
25 0 return $class->SUPER::new( @_ );
26 }
27  
28 1 1;
29  
30 __END__
« Config.pm ↑ Summary Config/LoadError.pm »