lib/I18NFool/ExtractorMerger.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond 100% 2 / 2 MC/DCmcdc 100% 1 / 1 Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 96.1% 25 / 26 CC 5 SCAR 13.5
CC
5
Cov
100%
process
5.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.9
« lib/I18NFool/Extractor.pm ↑ Summary blib/lib/I18NFool.pm »
1 package I18NFool::ExtractorMerger;
2 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5  
6 sub process
7 1 ▶{
Subroutine process: called CC=5 SCAR=16.1
Pod undocumented
8 1 my $class = shift;
9 1 my $result = {};
10 1 foreach my $domain_hash (@_)
11 {
12 2 foreach my $domain_key (keys %{$domain_hash})
13 {
14 6 my $domain_lexicon = $domain_hash->{$domain_key};
15 6 foreach my $key ( keys %{$domain_lexicon} )
16 {
17 6 my $po_entry = $domain_lexicon->{$key};
18 6 ▶ $result->{$domain_key} ||= {};
Condition100%2/2
$result->{$domain_key} ||= {}
l!l
33
MC/DC100%1/1
$result->{$domain_key} ||= {}
$result->{$domain_key}
Truth table100%2/2
A
A= $result->{$domain_key}
Aresult
11
00
19 6 $result->{$domain_key}->{$key} = $po_entry;
20 }
21 }
22 }
23  
24 1 return $result;
25 }
26  
27  
28 1 1;
29  
30  
31 __END__
« lib/I18NFool/Extractor.pm ↑ Summary blib/lib/I18NFool.pm »