File Coverage

blib/lib/SpeL/Object/Operator.pm
Criterion Covered Total %
statement 39 47 82.9
branch 0 10 0.0
condition n/a
subroutine 13 14 92.8
pod 1 1 100.0
total 53 72 73.6


line stmt bran cond sub pod time code
1             # -*- cperl -*-
2             # ABSTRACT: LaTeX operator object
3              
4              
5             package SpeL::Object::Operator;
6              
7 1     1   4313 use SpeL::Object::Environment;
  1         4  
  1         62  
8 1     1   8 use SpeL::Object::Group;
  1         3  
  1         77  
9 1     1   7 use SpeL::Object::MathInline;
  1         3  
  1         90  
10 1     1   8 use SpeL::Object::MathEnvironment;
  1         3  
  1         41  
11 1     1   5 use SpeL::Object::Item;
  1         3  
  1         67  
12 1     1   7 use SpeL::Object::Command;
  1         2  
  1         103  
13 1     1   7 use SpeL::Object::TokenSequence;
  1         2  
  1         36  
14 1     1   5 use SpeL::Object::Variable;
  1         2  
  1         52  
15 1     1   7 use SpeL::Object::Realnumber;
  1         2  
  1         48  
16             ;
17              
18 1     1   5 use SpeL::I18n;
  1         2  
  1         37  
19              
20 1     1   5 use parent 'Exporter';
  1         1  
  1         8  
21 1     1   98 use Carp;
  1         3  
  1         84  
22              
23 1     1   7 use Data::Dumper;
  1         2  
  1         361  
24              
25              
26              
27             sub read {
28 0     0 1   my $self = shift;
29 0           my ( $level ) = @_;
30              
31 0 0         $self->{''} eq '=' and return $SpeL::I18n::lh->maketext( '=' );
32 0 0         $self->{''} =~ /<|\\lt/ and return $SpeL::I18n::lh->maketext( '<' );
33 0 0         $self->{''} =~ />|\\gt/ and return $SpeL::I18n::lh->maketext( '>' );
34 0 0         $self->{''} eq '\le' and return $SpeL::I18n::lh->maketext( '<=' );
35 0 0         $self->{''} eq '\ge' and return $SpeL::I18n::lh->maketext( '>=' );
36              
37 0           return 'Error: Operator';
38             }
39              
40             1;
41              
42             __END__