File Coverage

blib/lib/Devel/Chitin/OpTree/LOOP.pm
Criterion Covered Total %
statement 11 16 68.7
branch n/a
condition n/a
subroutine 4 7 57.1
pod 2 4 50.0
total 17 27 62.9


line stmt bran cond sub pod time code
1             package Devel::Chitin::OpTree::LOOP;
2 35     35   186 use base 'Devel::Chitin::OpTree::LISTOP';
  35         48  
  35         6275  
3              
4             our $VERSION = '0.16';
5              
6 35     35   171 use strict;
  35         47  
  35         636  
7 35     35   146 use warnings;
  35         52  
  35         4133  
8              
9 0     0 0 0 sub pp_enterloop { '' } # handled inside pp_leaveloop
10              
11             sub nextop {
12 5     5 1 8 my $self = shift;
13 5         13 $self->_obj_for_op($self->op->nextop);
14             }
15              
16             sub redoop {
17 0     0 1   my $self = shift;
18 0           $self->_obj_for_op($self->op->redoop);
19             }
20              
21             sub lastop {
22 0     0 0   my $self = shift;
23 0           $self->_obj_for_op($self->op->lastop);
24             }
25              
26             1;
27              
28             __END__