Parser/File/Parser/Document.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 3 totaltotal 90.6% 29 / 32 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Parser/File/Parser/Navi.pm ↑ Summary Parser/File/Parser/Container.pm »
1 package EPUB::Parser::File::Parser::Document;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use parent 'EPUB::Parser::File::Parser';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 9 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
8 9 my $class = shift;
9  
10 9 my $self = $class->SUPER::new(@_);
11 9 $self->set_namespace;
12  
13 9 return $self;
14 }
15  
16 9 ▶sub set_namespace {
Subroutine set_namespace: called CC=1 SCAR=0.0
Pod undocumented
17 9 my $self = shift;
18 9 $self->set_xhtml_namespace;
19 }
20  
21 9 ▶sub set_xhtml_namespace {
Subroutine set_xhtml_namespace: called CC=1 SCAR=0.0
Pod undocumented
22 9 my $self = shift;
23  
24 9 my $xhtml_ns = $self->{doc}->documentElement()->getAttribute('xmlns');
25 9 $self->{parser}->registerNs( xhtml => $xhtml_ns );
26 }
27  
28 1 1;
29  
« Parser/File/Parser/Navi.pm ↑ Summary Parser/File/Parser/Container.pm »