Parser/File/Parser/Navi.pm

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