blib/lib/Astro/App/Satpass2/Wrap/Array.pm

filter: Statementstmt 90.9% 20 / 22 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 2 / 2 totaltotal 88.2% 30 / 34 CC 3 SCAR 6.8
CC
3
Cov
85%
new
3.6
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« blib/lib/Astro/App/Satpass2/FormatTime/Cldr.pm ↑ Summary blib/lib/Astro/App/Satpass2/Locale/C.pm »
1 package Astro::App::Satpass2::Wrap::Array;
2  
3 8 ▶use 5.008;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 8 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 8 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 8 ▶use Astro::App::Satpass2::Utils qw{ ARRAY_REF @CARP_NOT };
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 8 our $VERSION = '0.059';
11  
12 219 ▶sub new {
Subroutine new: called CC=3 SCAR=12.7
Pod documented
13 219 my ( $class, $array ) = @_;
14 219 ▶ ref $class and $class = ref $class;
Branch: 1 branch
BranchTrueFalseTotal
ref $class and $class = ref $class 0 219 219
15 219 ▶ if ( ARRAY_REF ne ref $array ) {
Branch: 1 branch
BranchTrueFalseTotal
if ("ARRAY" ne ref $array) 0 219 219
16 0 require Carp;
17 0 Carp::croak( 'Argument must be an array reference' );
18 }
19 219 return bless $array, $class;
20 }
21  
22 638 ▶sub dereference {
Subroutine dereference: called CC=1 SCAR=0.0
Pod documented
23 638 my ( $self ) = @_;
24 638 return @{ $self };
25 }
26  
27 8 1;
28  
29 __END__
« blib/lib/Astro/App/Satpass2/FormatTime/Cldr.pm ↑ Summary blib/lib/Astro/App/Satpass2/Locale/C.pm »