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   34 use strict;
  5         11  
  5         149  
3 5     5   28 use warnings;
  5         10  
  5         158  
4              
5 5     5   30 use Lingua::YaTeA::Edge;
  5         8  
  5         31  
6              
7             our @ISA = qw(Lingua::YaTeA::Edge);
8              
9             our $VERSION=$Lingua::YaTeA::VERSION;
10              
11             sub new
12             {
13 580     580 1 1237 my ($class,$tag,$father) = @_;
14 580         1476 my $this = $class->SUPER::new($father);
15 580         911 bless ($this,$class);
16 580         1319 $this->{POS_TAG} = $tag;
17 580         1162 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__