File Coverage

blib/lib/Template/Reverse/Part.pm
Criterion Covered Total %
statement 5 5 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod 0 1 0.0
total 7 8 87.5


line stmt bran cond sub pod time code
1             package Template::Reverse::Part;
2 9     9   47 use Moo;
  9         21  
  9         56  
3              
4             our $VERSION = '0.143'; # VERSION
5             # ABSTRACT: Part class.
6              
7             has pre=>(is=>'rw', default=>sub{[]});
8             has post=>(is=>'rw' , default=>sub{[]});
9             has type=>(is=>'rw');
10              
11             sub as_arrayref{
12 28     28 0 167 my ($self) = @_;
13 28         198 return [$self->pre, $self->post];
14             }
15             1;
16              
17             __END__