ClassFile/Struct/SourceDebugExtensionAttribute.pm

filter: Statementstmt 91.6% 22 / 24 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 83.3% 5 / 6 Podpod n/a totaltotal 81.8% 27 / 33 SCAR 0.0
CC
1
Cov
85%
__ANON__
1.5
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« ClassFile/Struct/ConstantNameAndTypeInfo.pm ↑ Summary ClassFile/Util/ArrayRefWeakenisation.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::Java::ClassFile::Struct::SourceDebugExtensionAttribute;
5 use MarpaX::Java::ClassFile::Struct::_Base
6 -tiny => [qw/_constant_pool attribute_name_index attribute_length debug_extension/],
7 '""' => [
8 #
9 # (I believe it) can be undef
10 #
11 1 ▶ [ sub { 'Debug extension' } => sub { $_[0]->debug_extension // '' } ]
Subroutine __ANON__: not called CC=1 SCAR=4.1
Condition0%0/2
$_[0]->debug_extension // ""
l!l
00
MC/DC0%0/1
$_[0]->debug_extension // ""
$_[0]->debug_extension
Truth table0%0/2
A
A= $_[0]->debug_extension
Aresult
11
00
12 1 ▶ ];
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 # ABSTRACT: SourceDebugExtension_attribute
15  
16 1 our $VERSION = '0.008'; # VERSION
17  
18 1 our $AUTHORITY = 'cpan:JDDPAUSE'; # AUTHORITY
19  
20 1 ▶use MarpaX::Java::ClassFile::Struct::_Types qw/U1 U2 U4/;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 1 ▶use Types::Standard qw/ArrayRef Str Undef/;
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 1 has _constant_pool => ( is => 'rw', required => 1, isa => ArrayRef);
24 1 has attribute_name_index => ( is => 'ro', required => 1, isa => U2 );
25 1 has attribute_length => ( is => 'ro', required => 1, isa => U4 );
26 1 has debug_extension => ( is => 'ro', required => 1, isa => Str|Undef );
27  
28 1 1;
29  
30 __END__
31  
32 =pod
33  
34 =encoding UTF-8
35  
36 =head1 NAME
37  
38 MarpaX::Java::ClassFile::Struct::SourceDebugExtensionAttribute - SourceDebugExtension_attribute
39  
40 =head1 VERSION
41  
42 version 0.008
43  
44 =head1 AUTHOR
45  
46 Jean-Damien Durand <jeandamiendurand@free.fr>
47  
48 =head1 COPYRIGHT AND LICENSE
49  
50 This software is copyright (c) 2016 by Jean-Damien Durand.
51  
52 This is free software; you can redistribute it and/or modify it under
53 the same terms as the Perl 5 programming language system itself.
54  
55 =cut
« ClassFile/Struct/ConstantNameAndTypeInfo.pm ↑ Summary ClassFile/Util/ArrayRefWeakenisation.pm »