File Coverage

blib/lib/Role/TinyCommons/Tree/FromStruct.pm
Criterion Covered Total %
statement 18 18 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 23 23 100.0


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