ClassFile/Util/ArrayRefWeakenisation.pm

filter: Statementstmt 86.3% 19 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 82.7% 24 / 29 SCAR 0.0
CC
1
Cov
86%
arrayRefWeakenisator
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« ClassFile/Struct/SourceDebugExtensionAttribute.pm ↑ Summary ClassFile/Struct/ArrayValue.pm »
1 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 3 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package MarpaX::Java::ClassFile::Util::ArrayRefWeakenisation;
5 3 ▶use Carp qw/croak/;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 ▶use Exporter 'import'; # gives you Exporter's import() method directly
Subroutine BEGIN: called CC=1 SCAR=0.0
7 3 ▶use Scalar::Util qw/weaken/;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 our @EXPORT_OK = qw/arrayRefWeakenisator/;
9  
10 # ABSTRACT: Weakens the content of an array reference
11  
12 3 our $VERSION = '0.008'; # VERSION
13  
14 3 our $AUTHORITY = 'cpan:JDDPAUSE'; # AUTHORITY
15  
16 sub arrayRefWeakenisator {
17 # my ($self, $arrayRef) = @_;
18  
19 0 ▶ map { weaken($_[1]->[$_]) } (0..$#{$_[1]})
Subroutine arrayRefWeakenisator: not called CC=1 SCAR=6.9
Pod undocumented
20 }
21  
22 3 1;
23  
24 __END__
25  
26 =pod
27  
28 =encoding UTF-8
29  
30 =head1 NAME
31  
32 MarpaX::Java::ClassFile::Util::ArrayRefWeakenisation - Weakens the content of an array reference
33  
34 =head1 VERSION
35  
36 version 0.008
37  
38 =head1 AUTHOR
39  
40 Jean-Damien Durand <jeandamiendurand@free.fr>
41  
42 =head1 COPYRIGHT AND LICENSE
43  
44 This software is copyright (c) 2016 by Jean-Damien Durand.
45  
46 This is free software; you can redistribute it and/or modify it under
47 the same terms as the Perl 5 programming language system itself.
48  
49 =cut
« ClassFile/Struct/SourceDebugExtensionAttribute.pm ↑ Summary ClassFile/Struct/ArrayValue.pm »