ClassFile/Util/ProductionMode.pm

filter: Statementstmt 100% 14 / 14 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 90.4% 19 / 21 SCAR 6.9
CC
2
Cov
94%
prod_isa
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« ClassFile/Struct/ConstantUtf8Info.pm ↑ Summary ClassFile/Struct/_Types.pm »
1 13 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 13 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package MarpaX::Java::ClassFile::Util::ProductionMode;
5  
6 # ABSTRACT: Provide an prod_isa that, in production mode, returns nothing
7  
8 13 our $VERSION = '0.008'; # VERSION
9  
10 13 our $AUTHORITY = 'cpan:JDDPAUSE'; # AUTHORITY
11  
12 13 ▶use Exporter 'import';
Subroutine BEGIN: called CC=1 SCAR=0.0
13 13 our @EXPORT_OK = qw/prod_isa/;
14  
15 21 ▶sub prod_isa { $ENV{AUTHOR_TESTING} ? (isa => @_) : () }
Subroutine prod_isa: called CC=2 SCAR=7.6
Pod undocumented
Branch: 1 branch
BranchTrueFalseTotal
$ENV{'AUTHOR_TESTING'} ? : 0 21 21
16  
17 13 1;
18  
19 __END__
20  
21 =pod
22  
23 =encoding UTF-8
24  
25 =head1 NAME
26  
27 MarpaX::Java::ClassFile::Util::ProductionMode - Provide an prod_isa that, in production mode, returns nothing
28  
29 =head1 VERSION
30  
31 version 0.008
32  
33 =head1 AUTHOR
34  
35 Jean-Damien Durand <jeandamiendurand@free.fr>
36  
37 =head1 COPYRIGHT AND LICENSE
38  
39 This software is copyright (c) 2016 by Jean-Damien Durand.
40  
41 This is free software; you can redistribute it and/or modify it under
42 the same terms as the Perl 5 programming language system itself.
43  
44 =cut
« ClassFile/Struct/ConstantUtf8Info.pm ↑ Summary ClassFile/Struct/_Types.pm »