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

filter: Statementstmt 95.6% 22 / 23 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 93.7% 30 / 32 CC 2 SCAR 2.6
CC
2
Cov
92%
full_message
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« lib/Perl/ToPerl6/OptionsProcessor.pm ↑ Summary lib/Perl/ToPerl6/Exception/Configuration/Option/Transformer/ExtraParameter.pm »
1 package Perl::ToPerl6::Exception::Configuration::Option::Global::ExtraParameter;
2  
3 17 ▶use 5.006001;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 17 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 17 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 17 ▶use Readonly;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 #-----------------------------------------------------------------------------
10  
11 17 ▶use Exception::Class (
Subroutine BEGIN: called CC=1 SCAR=0.0
12 17 'Perl::ToPerl6::Exception::Configuration::Option::Global::ExtraParameter' => {
13 isa => 'Perl::ToPerl6::Exception::Configuration::Option::Global',
14 description => 'The configuration referred to a non-existant global option.',
15 alias => 'throw_extra_global',
16 },
17 17 );
18  
19 #-----------------------------------------------------------------------------
20  
21 17 Readonly::Array our @EXPORT_OK => qw< throw_extra_global >;
22  
23 #-----------------------------------------------------------------------------
24  
25 4 ▶sub full_message {
Subroutine full_message: called CC=2 SCAR=7.1
Pod documented
26 4 my ( $self ) = @_;
27  
28 4 my $source = $self->source();
29 4 ▶ if ($source) {
Branch: 1 branch
BranchTrueFalseTotal
if ($source) { } 0 4 4
30 0 $source = qq{ (found in "$source")};
31 }
32 else {
33 4 $source = q{};
34 }
35  
36 4 my $option_name = $self->option_name();
37  
38 4 return qq{"$option_name" is not a supported option$source.};
39 }
40  
41  
42 17 1;
43  
44 __END__
« lib/Perl/ToPerl6/OptionsProcessor.pm ↑ Summary lib/Perl/ToPerl6/Exception/Configuration/Option/Transformer/ExtraParameter.pm »