CAB/Analyzer/ExLex/BDB.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 23 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::ExLex::BDB.pm
4 ## Author: Bryan Jurish <moocow@cpan.org>
5 ## Description: DTA exception lexicon
6  
7 ##==============================================================================
8 ## Package: ExLex: BDB
9 ##==============================================================================
10 package DTA::CAB::Analyzer::ExLex::BDB;
11 use DTA::CAB::Analyzer ':child';
12 use DTA::CAB::Analyzer::Dict::JsonDB;
13 use Carp;
14 use strict;
15 our @ISA = qw(DTA::CAB::Analyzer::Dict::JsonDB);
16  
17 ## $obj = CLASS_OR_OBJ->new(%args)
18 sub new {
19 my $that = shift;
20 return $that->SUPER::new(
21 ##-- overrides
22 label => 'exlex',
23 typeKeys => [qw(exlex pnd errid)],
24  
25 analyzeCode =>join("\n",
26 (
27 'return if (!defined($val=$dhash->{'
28 #._am_xlit('$_')
29 .'$_->{text}'
30 .'}));'
31 ),
32 '$val=$jxs->decode($val);',
33 '@$_{keys %$val}=values %$val;',
34 ),
35  
36 ##-- user args
37 @_
38 );
39 }
40  
41  
42 1; ##-- be happy
43  
44 __END__