File Coverage

blib/lib/Wiktionary/Parser/Section/Pronunciation/Representation.pm
Criterion Covered Total %
statement 4 12 33.3
branch n/a
condition n/a
subroutine 1 5 20.0
pod 0 5 0.0
total 5 22 22.7


line stmt bran cond sub pod time code
1             package Wiktionary::Parser::Section::Pronunciation::Representation;
2              
3             # keys:
4             # representation: IPA, SAMPA, prUS
5             # pronunciation: string representing pronunciation in the given representation format
6             # context: e.g. en(US), en(UK)
7             sub new {
8 14     14 0 19 my $class = shift;
9 14         44 my %args = @_;
10 14         52 my $self = bless \%args, $class;
11 14         43 return $self;
12             }
13              
14             sub get_representation {
15 0     0 0   my $self = shift;
16 0           return $self->{representation};
17             }
18              
19             sub get_pronunciation {
20 0     0 0   my $self = shift;
21 0           return $self->{pronunciation};
22             }
23              
24             sub get_context {
25 0     0 0   my $self = shift;
26 0           return $self->{context};
27             }
28              
29             sub get_senses {
30 0     0 0   my $self = shift;
31 0           return $self->{senses};
32             }
33              
34             1;