Sub/Meta/Finder/SubWrapInType.pm

filter: Statementstmt 92.3% 12 / 13 Branchbran 50.0% 1 / 2 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 76.0% 19 / 25 CC 3 SCAR 9.4
CC
3
Cov
78%
find_materials
4.1
BEGIN
1.0
BEGIN
1.0
CRAP 2.6
« Sub/Meta/Creator.pm ↑ Summary Sub/Meta/TypeSub.pm »
1 package Sub::Meta::Finder::SubWrapInType;
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  
5 2 ▶use Scalar::Util ();
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 4 ▶sub find_materials {
Subroutine find_materials: called CC=3 SCAR=14.2
Pod documented
8 4 my $sub = shift;
9  
10 4 ▶ return unless Scalar::Util::blessed($sub) && $sub->isa('Sub::WrapInType');
Branch: 1 branch
BranchTrueFalseTotal
unless builtin::blessed($sub) and $sub->isa("Sub::WrapInType") 4 0 4
Condition33%1/3
builtin::blessed($sub) and $sub->isa("Sub::WrapInType")
!ll&&!rl&&r
400
MC/DC0%0/2
builtin::blessed($sub) and $sub->isa("Sub::WrapInType")
builtin::blessed($sub) $sub->isa("Sub::WrapInType")
Truth table33%1/3
A and B
A= builtin::blessed($sub)B= $sub->isa("Sub::WrapInType")
ABresult
0X0
100
111
11  
12 return {
13 0 sub => $sub,
14 args => $sub->params,
15 returns => $sub->returns,
16 is_method => $sub->is_method,
17 }
18 }
19  
20 2 1;
21 __END__
« Sub/Meta/Creator.pm ↑ Summary Sub/Meta/TypeSub.pm »