Alias.pm

filter: Statementstmt 100% 20 / 20 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 93.1% 27 / 29 CC 3 SCAR 5.6
CC
3
Cov
95%
Alias
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.8
« SigHandler.pm ↑ Summary Method.pm »
1 package Attribute::Alias;
2  
3 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 5 ▶use Attribute::Handlers;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 5 our $VERSION = sprintf "%d.%02d", q$Revision: 1.2 $ =~ /(\d+)/g;
8  
9 1 ▶sub UNIVERSAL::Alias : ATTR {
Subroutine Alias: called CC=3 SCAR=11.0
Pod undocumented
10 1 my ($pkg, $symbol, $data) = @_[0,1,4];
11 5 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶ *{"$pkg\::$_"} = $symbol for ref $data eq 'ARRAY' ? @$data : $data;
Branch: 1 branch
BranchTrueFalseTotal
ref $data eq 'ARRAY' ? : 1 0 1
13 5 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 5 "Rosebud"; # for MARCEL's sake, not 1 -- dankogai
16  
17 __END__
« SigHandler.pm ↑ Summary Method.pm »