Highlife/Token.pm

filter: Statementstmt 41.1% 7 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 2 / 6 Podpod 0.0% 0 / 3 totaltotal 34.6% 9 / 26 CC 1 SCAR 5.1
CC
1
Cov
41%
new
2.0
_init
2.0
is_ignored
2.0
CRAP 1.7
« Highlife/Code.pm ↑ Summary Highlife.pm »
1 package Parse::Highlife::Token;
2  
3 1 ▶use Parse::Highlife::Utils qw(params);
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Data::Dump qw(dump);
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 sub new
7 0 ▶{
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
8 0 my( $class, @args ) = @_;
9 0 my $self = bless {}, $class;
10 0 return $self -> _init( @args );
11 }
12  
13 sub _init
14 0 ▶{
Subroutine _init: not called CC=1 SCAR=6.9
15 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 0 ▶{
Subroutine is_ignored: not called CC=1 SCAR=6.9
Pod undocumented
27 0 my( $self) = @_;
28 0 return $self->{'is-ignored'};
29 }
30  
31 # abstract
32 0 ▶sub match { return 0 }
Subroutine match: not called CC=1 SCAR=6.9
Pod undocumented
33  
34 1 1;
« Highlife/Code.pm ↑ Summary Highlife.pm »