Role/TinyCommons/Tree/FromStruct.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 29 / 29 CC 2 SCAR 2.9
CC
2
Cov
100%
BEGIN
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Role/TinyCommons/Tree/FromObjArray.pm ↑ Summary Role/TinyCommons/Tree/NodeMethods.pm »
1 package Role::TinyCommons::Tree::FromStruct;
2  
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use Role::Tiny;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use Role::Tiny::With;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
8 3 our $DATE = '2021-10-07'; # DATE
9 3 our $DIST = 'RoleBundle-TinyCommons-Tree'; # DIST
10 3 our $VERSION = '0.129'; # VERSION
11  
12 3 with 'Role::TinyCommons::Tree::NodeMethods';
13  
14 3 ▶BEGIN {
Subroutine BEGIN: called CC=2 SCAR=6.9
15 3 ▶ no strict 'refs'; ## no critic: TestingAndDebugging::ProhibitNoStrict
Subroutine BEGIN: called CC=1 SCAR=0.0
16 3 require Code::Includable::Tree::FromStruct;
17 3 for (grep {/\A[a-z]\w+\z/} keys %Code::Includable::Tree::FromStruct::) {
18 3 *{$_} = \&{"Code::Includable::Tree::FromStruct::$_"};
19 }
20 }
21  
22 3 1;
23 # ABSTRACT: Role that provides methods to build tree object from data structure
24  
25 __END__
« Role/TinyCommons/Tree/FromObjArray.pm ↑ Summary Role/TinyCommons/Tree/NodeMethods.pm »