File Coverage

blib/lib/SpeL/Object/Expressionrest.pm
Criterion Covered Total %
statement 41 41 100.0
branch 4 4 100.0
condition n/a
subroutine 13 13 100.0
pod 1 1 100.0
total 59 59 100.0


line stmt bran cond sub pod time code
1             # -*- cperl -*-
2             # ABSTRACT: LaTeX expressionrest object
3              
4              
5             package SpeL::Object::Expressionrest;
6              
7 41     41   260 use SpeL::Object::Expression;
  41         102  
  41         1799  
8 41     41   18829 use SpeL::Object::Subscript;
  41         135  
  41         2048  
9 41     41   18332 use SpeL::Object::Binop;
  41         164  
  41         2266  
10 41     41   19490 use SpeL::Object::Unop;
  41         161  
  41         2197  
11 41     41   18620 use SpeL::Object::Arrow;
  41         516  
  41         2523  
12 41     41   19219 use SpeL::Object::Faculty;
  41         131  
  41         1911  
13 41     41   18242 use SpeL::Object::Power;
  41         166  
  41         2157  
14 41     41   249 use SpeL::Object::Subscript;
  41         145  
  41         1330  
15 41     41   198 use SpeL::Object::Command;
  41         75  
  41         1457  
16              
17 41     41   190 use parent 'Exporter';
  41         77  
  41         220  
18 41     41   2388 use Carp;
  41         88  
  41         2271  
19              
20 41     41   207 use Data::Dumper;
  41         86  
  41         8563  
21              
22              
23              
24             sub read {
25 442     442 1 19206 my $self = shift;
26 442         894 my ( $level ) = @_;
27              
28 442 100       1248 return $self->{Endtext}->read( $level + 1 ) if ( exists $self->{Endtext} );
29            
30 441 100       3906 return '' unless exists $self->{Op}; # in case of ws
31             return
32             $self->{Op}->read( $level + 1 )
33             .
34 155         679 $self->{Remainder}->read( $level + 1 );
35             }
36              
37             1;
38              
39             __END__