blib/lib/MarpaX/ESLIF/Symbol/EventBitSet.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/Rule/PropertyBitSet.pm ↑ Summary blib/lib/MarpaX/ESLIF/Symbol/PropertyBitSet.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::Symbol::EventBitSet;
5  
6 # ABSTRACT: ESLIF Symbol Event Bit Set
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 # This section should be replaced on-the-fly at build time
16  
17 0 ▶sub AUTOLOAD {
Subroutine AUTOLOAD: not called CC=4 SCAR=26.8
18 # This AUTOLOAD is used to 'autoload' constants from the constant()
19 # XS function. If a constant is not found then control is passed
20 # to the AUTOLOAD in AutoLoader.
21  
22 0 my $constname;
23 0 our $AUTOLOAD;
24 0 ($constname = $AUTOLOAD) =~ s/.*:://;
25 0 ▶ croak "&MarpaX::ESLIF::Symbol::EventBitSet::constant not defined" if $constname eq 'constant';
Branch: 1 branch
BranchTrueFalseTotal
if $constname eq "constant" 0 0 0
26 0 my ($error, $val) = constant($constname);
27 0 ▶ if ($error) {
Branch: 1 branch
BranchTrueFalseTotal
if ($error) 0 0 0
28 0 ▶ if ($error =~ /is not a valid/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($error =~ /is not a valid/) { } 0 0 0
29 0 $AutoLoader::AUTOLOAD = $AUTOLOAD;
30 0 goto &AutoLoader::AUTOLOAD;
31 } else {
32 0 croak $error;
33 }
34 }
35 {
36 0 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.2
37 # Fixed between 5.005_53 and 5.005_61
38 #XXX if ($] >= 5.00561) {
39 #XXX *$AUTOLOAD = sub () { $val };
40 #XXX }
41 #XXX else {
42 0 ▶ *$AUTOLOAD = sub { $val };
Subroutine __ANON__: not called CC=1 SCAR=6.9
43 #XXX }
44 }
45 0 goto &$AUTOLOAD;
46 }
47  
48  
49  
50  
51 1 1;
52  
53 __END__
« blib/lib/MarpaX/ESLIF/Rule/PropertyBitSet.pm ↑ Summary blib/lib/MarpaX/ESLIF/Symbol/PropertyBitSet.pm »