lib/OODoc/Text/SubSubSection.pm

filter: Statementstmt 57.6% 15 / 26 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 7 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 40.0% 4 / 10 Podpod 66.6% 4 / 6 totaltotal 40.3% 23 / 57 CC 6 SCAR 24.5
CC
6
Cov
41%
init
30.0
findEntry
6.0
subsection
2.0
CRAP 11.5
« lib/OODoc/Text/Default.pm ↑ Summary lib/OODoc/Text/Example.pm »
1 # This code is part of Perl distribution OODoc version 3.05.
2 # The POD got stripped from this file by OODoc version 3.05.
3 # For contributors see file ChangeLog.
4  
5 # This software is copyright (c) 2003-2025 by Mark Overmeer.
6  
7 # This is free software; you can redistribute it and/or modify it under
8 # the same terms as the Perl 5 programming language system itself.
9 # SPDX-License-Identifier: Artistic-1.0-Perl OR GPL-1.0-or-later
10  
11  
12 package OODoc::Text::SubSubSection;{
13 1 our $VERSION = '3.05';
14 }
15  
16 1 ▶use parent 'OODoc::Text::Structure';
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 1 ▶use Log::Report 'oodoc';
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 #--------------------
24  
25 sub init($)
26 0 ▶{ my ($self, $args) = @_;
Subroutine init: not called CC=5 SCAR=34.0
Pod undocumented
27 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
28 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
29 0 ▶ $args->{level} ||= 4;
Condition0%0/2
$args->{"level"} ||= 4
l!l
00
MC/DC0%0/1
$args->{"level"} ||= 4
$args->{"level"}
Truth table0%0/2
A
A= $args->{"level"}
Aresult
11
00
30 0 $self->SUPER::init($args);
31 }
32  
33 sub findEntry($)
34 0 ▶{ my ($self, $name) = @_;
Subroutine findEntry: not called CC=2 SCAR=17.9
Pod documented
35 0 ▶ $self->name eq $name ? $self : ();
Branch: 1 branch
BranchTrueFalseTotal
$self->name eq $name ? : 0 0 0
36 }
37  
38 0 ▶sub nest() { }
Subroutine nest: not called CC=1 SCAR=0.0
Pod undocumented
39  
40 #--------------------
41  
42 0 ▶sub subsection() { $_[0]->container }
Subroutine subsection: not called CC=1 SCAR=6.9
Pod documented
43  
44  
45 0 ▶sub chapter() { $_[0]->subsection->chapter }
Subroutine chapter: not called CC=1 SCAR=6.9
Pod documented
46  
47 sub path()
48 0 ▶{ my $self = shift;
Subroutine path: not called CC=1 SCAR=6.9
Pod documented
49 0 $self->subsection->path . '/' . $self->name;
50 }
51  
52 1 1;
« lib/OODoc/Text/Default.pm ↑ Summary lib/OODoc/Text/Example.pm »