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

filter: Statementstmt 75.0% 15 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 62.5% 5 / 8 Podpod 100% 3 / 3 totaltotal 74.1% 23 / 31 CC 1 SCAR 3.2
CC
1
Cov
75%
message
2.0
error
2.0
full_message
2.0
CRAP 1.4
« lib/Perl/ToPerl6/ThemeListing.pm ↑ Summary lib/Perl/ToPerl6/OptionsProcessor.pm »
1 package Perl::ToPerl6::Exception::Configuration::Option;
2  
3 26 ▶use 5.006001;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 26 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 26 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 #-----------------------------------------------------------------------------
8  
9 26 ▶use Perl::ToPerl6::Exception::Fatal::Internal;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 26 ▶use Exception::Class ( # this must come after "use P::C::Exception::*"
Subroutine BEGIN: called CC=1 SCAR=0.0
12 26 'Perl::ToPerl6::Exception::Configuration::Option' => {
13 isa => 'Perl::ToPerl6::Exception::Configuration',
14 description => 'A problem with an option in the Perl::ToPerl6 configuration, whether from a file or a command line or some other source.',
15 fields => [ qw{ option_name option_value message_suffix } ],
16 },
17 26 );
18  
19 #-----------------------------------------------------------------------------
20  
21 0 ▶sub message {
Subroutine message: not called CC=1 SCAR=6.9
Pod documented
22 0 my $self = shift;
23  
24 0 return $self->full_message();
25 }
26  
27 #-----------------------------------------------------------------------------
28  
29 0 ▶sub error {
Subroutine error: not called CC=1 SCAR=6.9
Pod documented
30 0 my $self = shift;
31  
32 0 return $self->full_message();
33 }
34  
35 #-----------------------------------------------------------------------------
36  
37 0 ▶sub full_message {
Subroutine full_message: not called CC=1 SCAR=6.9
Pod documented
38 0 Perl::ToPerl6::Exception::Fatal::Internal->throw(
39 'Subclass failed to override abstract method.'
40 );
41 }
42 ## use mogrify
43  
44  
45 26 1;
46  
47 __END__
« lib/Perl/ToPerl6/ThemeListing.pm ↑ Summary lib/Perl/ToPerl6/OptionsProcessor.pm »