Rx/TypeBundle.pm

filter: Statementstmt 90.9% 10 / 11 Branchbran 50.0% 1 / 2 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 2 totaltotal 62.5% 15 / 24 CC 3 SCAR 9.2
CC
3
Cov
75%
prefix_pairs
3.7
without_prefix
2.0
BEGIN
1.0
CRAP 2.5
« Rx/CoreType/map.pm ↑ Summary Rx/CoreType/def.pm »
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 package Data::Rx::TypeBundle;
4 # ABSTRACT: base class for type bundles
5 1 $Data::Rx::TypeBundle::VERSION = '0.200007';
6 sub prefix_pairs {
7 54 ▶ return if ref $_[0] and $_[0]->{no_prefix};
Subroutine prefix_pairs: called CC=3 SCAR=13.1
Pod undocumented
Branch: 1 branch
BranchTrueFalseTotal
if ref $_[0] and $_[0]{"no_prefix"} 0 54 54
Condition33%1/3
ref $_[0] and $_[0]{"no_prefix"}
!ll&&!rl&&r
5400
MC/DC0%0/2
ref $_[0] and $_[0]{"no_prefix"}
ref $_[0] $_[0]{"no_prefix"}
Truth table33%1/3
A and B
A= ref $_[0]B= $_[0]{"no_prefix"}
ABresult
0X0
100
111
8 54 $_[0]->_prefix_pairs;
9 }
10  
11 sub without_prefix {
12 0 ▶ bless { no_prefix => 1 } => $_[0];
Subroutine without_prefix: not called CC=1 SCAR=6.9
Pod undocumented
13 }
14  
15 1 1;
16  
17 __END__
« Rx/CoreType/map.pm ↑ Summary Rx/CoreType/def.pm »