CAB/Analyzer/EqRW/Dict.pm untested

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