Common/Base.pm

filter: Statementstmt 78.3% 29 / 37 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 90.0% 9 / 10 Podpod 0.0% 0 / 1 totaltotal 76.0% 38 / 50 CC 2 SCAR 5.5
CC
2
Cov
74%
adjust
5.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.7
« Common/Handle.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 1 ▶use vars qw'@EXPORT @EXPORT_OK';
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 @EXPORT = ();
13 1 @EXPORT_OK = qw(adjust peek_my var_name);
14  
15 1 ▶use Const::Fast;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 1 ▶use PadWalker qw'peek_my var_name';
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 APPLY {
19 1 ▶ use v5.40;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 1 ▶ use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 }
22  
23 0 ▶method adjust ( $field, $val ) {
Subroutine adjust: not called CC=2 SCAR=16.1
Pod undocumented
24 0 my $varname = var_name( 0, $field );
25 0 ▶ eval "$varname = \$val" if $varname;
Branch: 1 branch
BranchTrueFalseTotal
if $varname 0 0 0
26 0 $self;
27 }
28  
« Common/Handle.pm ↑ Summary