blib/lib/MarpaX/ESLIF/Event/Type.pm

filter: Statementstmt 51.7% 15 / 29 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod n/a totaltotal 46.3% 19 / 41 CC 4 SCAR 19.6
CC
4
Cov
43%
AUTOLOAD
14.5
__ANON__
2.0
BEGIN
1.0
CRAP 7.1
« blib/lib/MarpaX/ESLIF/Grammar.pm ↑ Summary blib/lib/MarpaX/ESLIF/Logger/Level.pm »
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package MarpaX::ESLIF::Event::Type;
5  
6 # ABSTRACT: ESLIF Event Types
7  
8 1 our $AUTHORITY = 'cpan:JDDPAUSE'; # AUTHORITY
9  
10  
11 1 ▶use Carp qw/croak/;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 1 our $VERSION = '6.0.35.1'; # VERSION
14  
15  
16 # This section should be replaced on-the-fly at build time
17  
18 0 ▶sub AUTOLOAD {
Subroutine AUTOLOAD: not called CC=4 SCAR=26.8
19 # This AUTOLOAD is used to 'autoload' constants from the constant()
20 # XS function. If a constant is not found then control is passed
21 # to the AUTOLOAD in AutoLoader.
22  
23 0 my $constname;
24 0 our $AUTOLOAD;
25 0 ($constname = $AUTOLOAD) =~ s/.*:://;
26 0 ▶ croak "&MarpaX::ESLIF::Event::Type::constant not defined" if $constname eq 'constant';
Branch: 1 branch
BranchTrueFalseTotal
if $constname eq "constant" 0 0 0
27 0 my ($error, $val) = constant($constname);
28 0 ▶ if ($error) {
Branch: 1 branch
BranchTrueFalseTotal
if ($error) 0 0 0
29 0 ▶ if ($error =~ /is not a valid/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($error =~ /is not a valid/) { } 0 0 0
30 0 $AutoLoader::AUTOLOAD = $AUTOLOAD;
31 0 goto &AutoLoader::AUTOLOAD;
32 } else {
33 0 croak $error;
34 }
35 }
36 {
37 0 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.2
38 # Fixed between 5.005_53 and 5.005_61
39 #XXX if ($] >= 5.00561) {
40 #XXX *$AUTOLOAD = sub () { $val };
41 #XXX }
42 #XXX else {
43 0 ▶ *$AUTOLOAD = sub { $val };
Subroutine __ANON__: not called CC=1 SCAR=6.9
44 #XXX }
45 }
46 0 goto &$AUTOLOAD;
47 }
48  
49  
50  
51  
52 1 1;
53  
54 __END__
« blib/lib/MarpaX/ESLIF/Grammar.pm ↑ Summary blib/lib/MarpaX/ESLIF/Logger/Level.pm »