blib/lib/Acme/Ref.pm

filter: Statementstmt 66.6% 14 / 21 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 60.7% 17 / 28 CC 2 SCAR 11.0
CC
2
Cov
61%
deref
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
↑ Summary blib/lib/Acme/ref.pl »
1 package Acme::Ref;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use base 'Exporter';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 our @EXPORT_OK = ( 'deref' );
8  
9 1 our $VERSION = '0.03';
10  
11 1 require XSLoader;
12 1 XSLoader::load('Acme::Ref', $VERSION);
13  
14 0 ▶sub deref {
Subroutine deref: not called CC=2 SCAR=17.9
Pod undocumented
15 0 my $str = shift;
16 0 ▶ unless ($str) { return }
Branch: 1 branch
BranchTrueFalseTotal
unless ($str) 0 0 0
17 0 $str =~ m/^(.*)\(0x(.*)\)$/;
18 0 my ($cls,$ptr) = ($1,$2);
19 0 $ptr = hex($ptr);
20 0 _deref($ptr);
21 }
22  
23 1 1;
24 __END__
↑ Summary blib/lib/Acme/ref.pl »