lib/OODoc/Text/SubSubSection.pm

filter: Statementstmt 58.6% 17 / 29 Branchbran 0.0% 0 / 6 Conditioncond 0.0% 0 / 7 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 50.0% 5 / 10 Podpod 80.0% 4 / 5 totaltotal 42.6% 26 / 61 SCAR 28.5
CC
7
Cov
40%
init
42.0
findEntry
6.0
subsection
2.0
CRAP 17.3
« blib/lib/OODoc/Text/SubSection.pm ↑ Summary blib/lib/OODoc/Format/Pod2.pm »
1 # Copyrights 2003-2021 by [Mark Overmeer].
2 # For other contributors see ChangeLog.
3 # See the manual pages for details on the licensing terms.
4 # Pod stripped from pm file by OODoc 2.02.
5 # This code is part of perl distribution OODoc. It is licensed under the
6 # same terms as Perl itself: https://spdx.org/licenses/Artistic-2.0.html
7  
8 package OODoc::Text::SubSubSection;
9 1 ▶use vars '$VERSION';
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 $VERSION = '2.02';
11  
12 1 ▶use base 'OODoc::Text::Structure';
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 1 ▶use Log::Report 'oodoc';
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19  
20 sub init($)
21 0 ▶{ my ($self, $args) = @_;
Subroutine init: not called CC=6 SCAR=37.4
Pod undocumented
22 0 ▶ $args->{type} ||= 'Subsubsection';
Condition0%0/2
$args->{"type"} ||= "Subsubsection"
l!l
00
MC/DC0%0/1
$args->{"type"} ||= "Subsubsection"
$args->{"type"}
Truth table0%0/2
A
A= $args->{"type"}
Aresult
11
00
23 0 ▶ $args->{container} ||= delete $args->{subsection} or panic;
Branch: 1 branch
BranchTrueFalseTotal
$args->{"container"} ||= delete $args->{"subsection"} or &panic() 0 0 0
Condition0%0/3
$args->{"container"} ||= delete $args->{"subsection"}
l!l&&r!l&&!r
000
MC/DC0%0/2
$args->{"container"} ||= delete $args->{"subsection"}
$args->{"container"} delete $args->{"subsection"}
Truth table0%0/3
A ||= B
A= $args->{"container"}B= delete $args->{"subsection"}
ABresult
1X1
011
000
24 0 ▶ $args->{level} ||= 3;
Condition0%0/2
$args->{"level"} ||= 3
l!l
00
MC/DC0%0/1
$args->{"level"} ||= 3
$args->{"level"}
Truth table0%0/2
A
A= $args->{"level"}
Aresult
11
00
25  
26 0 ▶ $self->SUPER::init($args)
Branch: 1 branch
BranchTrueFalseTotal
$self->SUPER::init($args) or return 0 0 0
27 or return;
28  
29 0 $self;
30 }
31  
32 sub findEntry($)
33 0 ▶{ my ($self, $name) = @_;
Subroutine findEntry: not called CC=2 SCAR=17.9
Pod documented
34 0 ▶ $self->name eq $name ? $self : ();
Branch: 1 branch
BranchTrueFalseTotal
$self->name eq $name ? : 0 0 0
35 }
36  
37 #--------------
38  
39 0 ▶sub subsection() { shift->container }
Subroutine subsection: not called CC=1 SCAR=6.9
Pod documented
40  
41  
42 0 ▶sub chapter() { shift->subsection->chapter }
Subroutine chapter: not called CC=1 SCAR=6.9
Pod documented
43  
44 sub path()
45 0 ▶{ my $self = shift;
Subroutine path: not called CC=1 SCAR=6.9
Pod documented
46 0 $self->subsection->path . '/' . $self->name;
47 }
48  
49 1 1;
« blib/lib/OODoc/Text/SubSection.pm ↑ Summary blib/lib/OODoc/Format/Pod2.pm »