File Coverage

blib/lib/Lingua/YaTeA/PatternLeaf.pm
Criterion Covered Total %
statement 14 18 77.7
branch n/a
condition n/a
subroutine 4 6 66.6
pod 3 3 100.0
total 21 27 77.7


line stmt bran cond sub pod time code
1             package Lingua::YaTeA::PatternLeaf;
2 5     5   30 use strict;
  5         7  
  5         118  
3 5     5   21 use warnings;
  5         7  
  5         96  
4              
5 5     5   23 use Lingua::YaTeA::Edge;
  5         8  
  5         22  
6              
7             our @ISA = qw(Lingua::YaTeA::Edge);
8              
9             our $VERSION=$Lingua::YaTeA::VERSION;
10              
11             sub new
12             {
13 580     580 1 949 my ($class,$tag,$father) = @_;
14 580         1303 my $this = $class->SUPER::new($father);
15 580         770 bless ($this,$class);
16 580         1060 $this->{POS_TAG} = $tag;
17 580         875 return $this;
18             }
19              
20              
21             sub getPOS
22             {
23 0     0 1   my ($this) = @_;
24 0           return $this->{POS_TAG};
25             }
26              
27             sub print
28             {
29 0     0 1   my ($this) = @_;
30 0           print $this->getPOS;
31             }
32              
33              
34             1;
35              
36             __END__