Common/Base.pm

filter: Statementstmt 78.0% 32 / 41 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 84.6% 11 / 13 Podpod 0.0% 0 / 1 totaltotal 72.8% 43 / 59 CC 3 SCAR 7.9
CC
3
Cov
71%
refstr
6.0
adjust
5.0
BEGIN
1.0
CRAP 2.2
« Common.pm ↑ Summary
1 1 ▶use Object::Pad ':experimental(:all)';
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package IO::Handle::Common::Base;
4  
5 role IO::Handle::Common::Base;
6  
7 1 ▶use v5.40;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶use parent 'Exporter';
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 1 ▶use Const::Fast;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use PadWalker qw'peek_my var_name';
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
16 1 ▶ use vars qw'@EXPORT @EXPORT_OK';
Subroutine BEGIN: called CC=1 SCAR=0.0
17 1 @EXPORT = ();
18 1 @EXPORT_OK = qw(refstr adjust peek_my var_name);
19 }
20  
21 APPLY {
22 1 ▶ use v5.40;
Subroutine BEGIN: called CC=1 SCAR=0.0
23 1 ▶ use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 1 ▶ use IO::Handle::Common::Base qw'refstr'
Subroutine BEGIN: called CC=1 SCAR=0.0
26 1 }
27  
28 0 ▶method adjust ( $field, $val ) {
Subroutine adjust: not called CC=2 SCAR=16.1
Pod undocumented
29 0 my $varname = var_name( 0, $field );
30 0 ▶ eval "$varname = \$val" if $varname;
Branch: 1 branch
BranchTrueFalseTotal
if $varname 0 0 0
31 0 $self;
32 }
33  
34 0 ▶sub refstr ($in) {
Subroutine refstr: not called CC=2 SCAR=17.9
35 0 ▶ reftype($in) || '';
Branch: 1 branch
BranchTrueFalseTotal
builtin::reftype($in) or "" 0 0 0
36 }
37  
« Common.pm ↑ Summary