string/uc.pm

filter: Statementstmt 100% 18 / 18 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 96.0% 24 / 25 CC 2 SCAR 2.9
CC
2
Cov
95%
import
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« string.pm ↑ Summary string/ucfirst.pm »
1 package constant::string::uc;
2  
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 4 ▶use constant ();
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 4 our $VERSION = '2026.377';
9  
10 4 ▶sub import {
Subroutine import: called CC=2 SCAR=7.0
11 4 my ($class, @args) = @_;
12 4 my $caller = caller;
13  
14 4 my %constants = map
15 +(join( '::', "$caller", uc($_) ), $_), @args;
16  
17 4 ▶ constant->import( \%constants ) if %constants;
Branch: 1 branch
BranchTrueFalseTotal
if %constants 4 0 4
18  
19 }
20  
21 4 1;
22  
23 __END__
« string.pm ↑ Summary string/ucfirst.pm »