Parser/File/Navi/Context.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 95.6% 22 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Parser/File/OPF/Context.pm ↑ Summary Parser/File/OPF/Context/Guide.pm »
1 package EPUB::Parser::File::Navi::Context;
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 Smart::Args;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 14 ▶use EPUB::Parser::Util::Context qw/child_class context_name 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 args(
9 my $class => 'ClassName',
10 my $context_name => 'Str',
11 my $parser,
12 );
13  
14 3 my $child_class = $class->child_class({
15 context_name => $context_name,
16 });
17  
18 3 my $child = bless {
19 parser => $parser,
20 context_name => $context_name,
21 } => $child_class;
22  
23  
24 3 return $child;
25 }
26  
27  
28 14 1;
« Parser/File/OPF/Context.pm ↑ Summary Parser/File/OPF/Context/Guide.pm »