ClassFile/Struct/LineNumber.pm

filter: Statementstmt 89.4% 17 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod n/a totaltotal 87.5% 21 / 24 SCAR 0.0
CC
1
Cov
89%
__ANON__
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« ClassFile/Struct/ElementValue.pm ↑ Summary ClassFile/Struct/Table.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::LineNumber;
5 use MarpaX::Java::ClassFile::Struct::_Base
6 -tiny => [qw/start_pc line_number/],
7 '""' => [
8 #
9 # Force one line
10 #
11 1 ▶ [ sub { '{#Start pc, Line number}' } => sub { '{#' . $_[0]->start_pc . ', ' . $_[0]->line_number . '}' } ]
Subroutine __ANON__: not called CC=1 SCAR=2.6
12 1 ▶ ];
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 # ABSTRACT: line and number
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/U2 U4/;
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 1 has start_pc => ( is => 'ro', required => 1, isa => U2 );
23 1 has line_number => ( is => 'ro', required => 1, isa => U4 );
24  
25 1 1;
26  
27 __END__
28  
29 =pod
30  
31 =encoding UTF-8
32  
33 =head1 NAME
34  
35 MarpaX::Java::ClassFile::Struct::LineNumber - line and number
36  
37 =head1 VERSION
38  
39 version 0.008
40  
41 =head1 AUTHOR
42  
43 Jean-Damien Durand <jeandamiendurand@free.fr>
44  
45 =head1 COPYRIGHT AND LICENSE
46  
47 This software is copyright (c) 2016 by Jean-Damien Durand.
48  
49 This is free software; you can redistribute it and/or modify it under
50 the same terms as the Perl 5 programming language system itself.
51  
52 =cut
« ClassFile/Struct/ElementValue.pm ↑ Summary ClassFile/Struct/Table.pm »