File Coverage

blib/lib/Tangerine/HookData.pm
Criterion Covered Total %
statement 16 16 100.0
branch n/a
condition 6 6 100.0
subroutine 8 8 100.0
pod 4 5 80.0
total 34 35 97.1


line stmt bran cond sub pod time code
1             package Tangerine::HookData;
2             $Tangerine::HookData::VERSION = '0.19';
3 15     15   1356 use strict;
  15         37  
  15         406  
4 15     15   58 use warnings;
  15         17  
  15         411  
5 15     15   61 use Tangerine::Utils qw/accessor/;
  15         25  
  15         2964  
6              
7             sub new {
8 174     174 0 581 my $class = shift;
9 174         283 my %args = @_;
10             bless {
11             _children => $args{children} // [],
12             _hooks => $args{hooks} // [],
13             _modules => $args{modules} // {},
14             _type => $args{type},
15 174   100     2155 }, $class
      100        
      100        
16             }
17              
18 196     196 1 333 sub children { accessor _children => @_ }
19 188     188 1 318 sub hooks { accessor _hooks => @_ }
20 174     174 1 436 sub modules { accessor _modules => @_ }
21 22     22 1 39 sub type { accessor _type => @_ }
22              
23             1;
24              
25             __END__