File Coverage

blib/lib/Parse/Highlife/Token.pm
Criterion Covered Total %
statement 6 16 37.5
branch n/a
condition n/a
subroutine 2 6 33.3
pod 0 3 0.0
total 8 25 32.0


line stmt bran cond sub pod time code
1             package Parse::Highlife::Token;
2              
3 1     1   5 use Parse::Highlife::Utils qw(params);
  1         2  
  1         42  
4 1     1   4 use Data::Dump qw(dump);
  1         2  
  1         209  
5              
6             sub new
7             {
8 0     0 0   my( $class, @args ) = @_;
9 0           my $self = bless {}, $class;
10 0           return $self -> _init( @args );
11             }
12              
13             sub _init
14             {
15 0     0     my( $self, $ignored )
16             = params( \@_,
17             -ignored => 0,
18             );
19              
20 0           $self->{'is-ignored'} = $ignored;
21 0           $self->{'name'} = '';
22 0           return $self;
23             }
24              
25             sub is_ignored
26             {
27 0     0 0   my( $self) = @_;
28 0           return $self->{'is-ignored'};
29             }
30              
31             # abstract
32 0     0 0   sub match { return 0 }
33              
34             1;