CAB/Analyzer/EqPho/Dict.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 ## -*- Mode: CPerl -*-
2 ##
3 ## File: DTA::CAB::Analyzer::EqPho::Dict.pm
4 ## Author: Bryan Jurish <moocow@cpan.org>
5 ## Description: dictionary-based equivalence-class expander, phonetic variant
6  
7 package DTA::CAB::Analyzer::EqPho::Dict;
8 use DTA::CAB::Analyzer ':child';
9 use DTA::CAB::Analyzer::Dict;
10 use strict;
11  
12 ##==============================================================================
13 ## Globals
14 ##==============================================================================
15  
16 our @ISA = qw(DTA::CAB::Analyzer::Dict);
17  
18 ##==============================================================================
19 ## Constructors etc.
20 ##==============================================================================
21  
22 ## $obj = CLASS_OR_OBJ->new(%args)
23 ## + object structure: see Dict
24 sub new {
25 my $that = shift;
26 return $that->SUPER::new(
27 ##-- options
28 label => 'eqpho',
29 analyzeGet => '$_[0]{lts}[0]{hi}',
30 analyzeSet => $DICT_SET_FST_EQ,
31 eqIdWeight => 0,
32 allowRegex => '(?:^[[:alpha:]\-]*[[:alpha:]]+$)|(?:^[[:alpha:]]+[[:alpha:]\-]+$)',
33  
34 ##-- user args
35 @_
36 );
37 }
38  
39  
40 1; ##-- be happy
41  
42 __END__