File Coverage

blib/lib/Role/TinyCommons/Tree/FromStruct.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 19 19 100.0


line stmt bran cond sub pod time code
1             package Role::TinyCommons::Tree::FromStruct;
2              
3             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
4             our $DATE = '2021-07-02'; # DATE
5             our $DIST = 'Role-TinyCommons-Tree'; # DIST
6             our $VERSION = '0.127'; # VERSION
7              
8 2     2   2130 use Role::Tiny;
  2         5  
  2         9  
9 2     2   265 use Role::Tiny::With;
  2         5  
  2         102  
10              
11             with 'Role::TinyCommons::Tree::NodeMethods';
12              
13             BEGIN {
14 2     2   11 no strict 'refs';
  2         3  
  2         233  
15 2     2   977 require Code::Includable::Tree::FromStruct;
16 2         10 for (grep {/\A[a-z]\w+\z/} keys %Code::Includable::Tree::FromStruct::) {
  20         48  
17 2         3 *{$_} = \&{"Code::Includable::Tree::FromStruct::$_"};
  2         60  
  2         10  
18             }
19             }
20              
21             1;
22             # ABSTRACT: Role that provides methods to build tree object from data structure
23              
24             __END__