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   2428 use strict;
  2         5  
  2         68  
4 2     2   11 use Role::Tiny;
  2         5  
  2         11  
5 2     2   293 use Role::Tiny::With;
  2         4  
  2         260  
6              
7             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
8             our $DATE = '2021-10-07'; # DATE
9             our $DIST = 'RoleBundle-TinyCommons-Tree'; # DIST
10             our $VERSION = '0.129'; # VERSION
11              
12             with 'Role::TinyCommons::Tree::NodeMethods';
13              
14             BEGIN {
15 2     2   25 no strict 'refs'; ## no critic: TestingAndDebugging::ProhibitNoStrict
  2         6  
  2         294  
16 2     2   1009 require Code::Includable::Tree::FromStruct;
17 2         13 for (grep {/\A[a-z]\w+\z/} keys %Code::Includable::Tree::FromStruct::) {
  20         56  
18 2         5 *{$_} = \&{"Code::Includable::Tree::FromStruct::$_"};
  2         71  
  2         10  
19             }
20             }
21              
22             1;
23             # ABSTRACT: Role that provides methods to build tree object from data structure
24              
25             __END__