Parser/Entry.pm

filter: Statementstmt 96.1% 25 / 26 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 9 / 9 Podpod 100% 4 / 4 totaltotal 95.1% 39 / 41 CC 2 SCAR 2.1
CC
2
Cov
93%
get_data_descriptor
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Parser.pm ↑ Summary Parser/Entry/CentralDirectory.pm »
1 package Archive::Zip::Parser::Entry;
2  
3 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶use Archive::Zip::Parser::Entry::LocalFileHeader;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 3 ▶use Archive::Zip::Parser::Entry::CentralDirectory;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 ▶use Archive::Zip::Parser::Entry::DataDescriptor;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶sub get_local_file_header {
Subroutine get_local_file_header: called CC=1 SCAR=0.0
Pod documented
11 1 my $self = shift;
12 1 return bless $self->{'_local_file_header'},
13 'Archive::Zip::Parser::Entry::LocalFileHeader';
14 }
15  
16 1 ▶sub get_central_directory {
Subroutine get_central_directory: called CC=1 SCAR=0.0
Pod documented
17 1 my $self = shift;
18 1 return bless $self->{'_central_directory'},
19 'Archive::Zip::Parser::Entry::CentralDirectory';
20 }
21  
22 1 ▶sub get_data_descriptor {
Subroutine get_data_descriptor: called CC=2 SCAR=7.6
Pod documented
23 1 my $self = shift;
24  
25 1 ▶ if ( defined $self->{'_data_descriptor'} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $self->{"_data_descriptor"}) 0 1 1
26 0 return bless $self->{'_data_descriptor'},
27 'Archive::Zip::Parser::Entry::DataDescriptor';
28 }
29 1 return;
30 }
31  
32 1 ▶sub get_file_data {
Subroutine get_file_data: called CC=1 SCAR=0.0
Pod documented
33 1 my $self = shift;
34 1 return $self->{'_file_data'};
35 }
36  
37 3 1;
38 __END__
« Parser.pm ↑ Summary Parser/Entry/CentralDirectory.pm »