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   228 use base 'Devel::Chitin::OpTree::LISTOP';
  35         66  
  35         5183  
3              
4             our $VERSION = '0.15';
5              
6 35     35   206 use strict;
  35         58  
  35         772  
7 35     35   172 use warnings;
  35         56  
  35         5086  
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         20 $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__