common/sense.pm

filter: Statementstmt 100% 26 / 26 Branchbran 50.0% 3 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 91.8% 34 / 37 CC 4 SCAR 9.3
CC
4
Cov
91%
import
4.1
BEGIN
1.0
BEGIN
1.0
CRAP 2.5
↑ Summary Alt/common/sense/TOBYINK.pm »
1 2 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 package #
7 common::sense;
8  
9 2 our $AUTHORITY = 'cpan:TOBYINK';
10 2 our $VERSION = '3.73';
11  
12 sub import
13 2 ▶{
Subroutine import: called CC=4 SCAR=14.0
14 # utf8
15 2 'utf8'->import;
16
17 # strict
18 2 'strict'->import( qw(vars subs) );
19
20 # feature
21 2 ▶ if ($] >= 5.010)
Branch: 1 branch
BranchTrueFalseTotal
if ($] >= "5.01") 2 0 2
22 {
23 2 require feature;
24 2 'feature'->import( qw(say state switch) );
25 2 ▶ 'feature'->import( qw(unicode_strings) ) if $] >= 5.012;
Branch: 1 branch
BranchTrueFalseTotal
if $] >= "5.012" 2 0 2
26 2 ▶ if ($] >= 5.016)
Branch: 1 branch
BranchTrueFalseTotal
if ($] >= "5.016") 2 0 2
27 {
28 2 'feature'->import( qw(current_sub fc evalbytes) );
29 2 'feature'->unimport( qw(array_base) );
30 }
31 }
32
33 # warnings
34 2 'warnings'->unimport;
35 2 'warnings'->import(
36 qw(
37 FATAL closed threads internal debugging pack
38 portable prototype inplace io pipe unpack malloc
39 glob digit printf layer
40 reserved taint closure semicolon
41 )
42 );
43 2 'warnings'->unimport( qw(exec newline unopened) );
44 }
45  
46 2 1;
↑ Summary Alt/common/sense/TOBYINK.pm »