Packages/Data.pm

filter: Statementstmt 100% 14 / 14 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 33.3% 1 / 3 totaltotal 91.3% 21 / 23 CC 2 SCAR 3.4
CC
2
Cov
100%
got_index_line
2.0
BEGIN
1.0
final
1.0
CRAP 1.4
↑ Summary Packages/Grammar.pm »
1 package Pegex::CPAN::Packages::Data;
2  
3 1 ▶use Pegex::Base;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 extends 'Pegex::Tree';
5  
6 1 has data => {};
7  
8 1 ▶sub final {
Subroutine final: called CC=1 SCAR=0.0
Pod documented
9 1 my ($self, $got) = @_;
10 1 return $self->data;
11 }
12  
13 1 ▶sub got_meta_section {
Subroutine got_meta_section: called CC=1 SCAR=0.0
Pod undocumented
14 1 my ($self, $got) = @_;
15 1 $self->{data}{meta} = { map { @$_ } @$got };
16 }
17  
18 144806 ▶sub got_index_line {
Subroutine got_index_line: called CC=2 SCAR=6.9
Pod undocumented
19 144806 my ($self, $got) = @_;
20  
21 144806 my ( $package, $version, $distribution ) = @$got;
22  
23 144806 ▶ $self->{data}{index}{$distribution}{$package} =
Branch: 1 branch
BranchTrueFalseTotal
'undef' eq $version ? : 47255 97551 144806
24 'undef' eq $version
25 ? undef
26 : $version;
27 }
28  
29 1 1;
↑ Summary Packages/Grammar.pm »