lib/Perl/ToPerl6/Exception/Configuration/Option/Transformer.pm

filter: Statementstmt 100% 20 / 20 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 100% 29 / 29 CC 2 SCAR 2.5
CC
2
Cov
100%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« lib/Perl/ToPerl6/Exception/Configuration/Option/Transformer/ExtraParameter.pm ↑ Summary lib/Perl/ToPerl6/TransformerParameter/Behavior/String.pm »
1 package Perl::ToPerl6::Exception::Configuration::Option::Transformer;
2  
3 25 ▶use 5.006001;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 25 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 25 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 25 ▶use Perl::ToPerl6::Utils qw{ &transformer_short_name };
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 #-----------------------------------------------------------------------------
10  
11 25 ▶use Exception::Class (
Subroutine BEGIN: called CC=1 SCAR=0.0
12 25 'Perl::ToPerl6::Exception::Configuration::Option::Transformer' => {
13 isa => 'Perl::ToPerl6::Exception::Configuration::Option',
14 description => 'A problem with the configuration of a transformer.',
15 fields => [ qw{ transformer } ],
16 },
17 25 );
18  
19 #-----------------------------------------------------------------------------
20  
21 49 ▶sub new {
Subroutine new: called CC=2 SCAR=6.9
Pod documented
22 49 my ($class, %options) = @_;
23  
24 49 my $transformer = $options{transformer};
25 49 ▶ if ($transformer) {
Branch: 1 branch
BranchTrueFalseTotal
if ($transformer) 47 2 49
26 47 $options{transformer} = transformer_short_name($transformer);
27 }
28  
29 49 return $class->SUPER::new(%options);
30 }
31  
32  
33 25 1;
34  
35 __END__
« lib/Perl/ToPerl6/Exception/Configuration/Option/Transformer/ExtraParameter.pm ↑ Summary lib/Perl/ToPerl6/TransformerParameter/Behavior/String.pm »