Scaffold/Exception/NoSuchFactoryHandler.pm

filter: Statementstmt 86.9% 20 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 87.5% 7 / 8 Podpod 100% 1 / 1 totaltotal 87.5% 28 / 32 CC 1 SCAR 1.2
CC
1
Cov
87%
init
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« Scaffold/Exception/Loader.pm ↑ Summary Scaffold/LazyString.pm »
1 1 ▶use 5.008;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package Class::Scaffold::Exception::NoSuchFactoryHandler;
6 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 $Class::Scaffold::Exception::NoSuchFactoryHandler::VERSION = '1.102280';
8 }
9 # ABSTRACT: Exception raised on a factory look-up failure
10 1 ▶use parent 'Class::Scaffold::Exception';
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 __PACKAGE__->mk_accessors(qw(handler_type spec));
12 1 ▶use constant default_message =>
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 'Factory lookup failure for handler type [%s], spec [%s]';
14 1 ▶use constant PROPERTIES => (qw/handler_type spec/);
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 0 ▶sub init {
Subroutine init: not called CC=1 SCAR=6.9
Pod documented
17 0 my $self = shift;
18  
19 # because we call SUPER::init(), which uses caller() to set
20 # package, filename and line of the exception, *plus* we don't want
21 # to report the abstract method that threw this exception itself,
22 # rather we want to report its caller, i.e. the one that called the
23 # abstract method. So we use +2.
24 0 local $Error::Depth = $Error::Depth + 2;
25 0 $self->SUPER::init(@_);
26 }
27 1 1;
28  
29 __END__
« Scaffold/Exception/Loader.pm ↑ Summary Scaffold/LazyString.pm »