blib/lib/OODoc/Text/SubSubSection.pm untested

filter: Statementstmt 0.0% 0 / 28 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 12 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 10 Podpod 0.0% 0 / 5 totaltotal 0.0% 0 / 57 SCAR 17.9
CC
2
Cov
0%
findEntry
6.0
init
2.0
subsection
2.0
CRAP 6.0
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 use vars '$VERSION';
10 $VERSION = '2.02';
11  
12 use base 'OODoc::Text::Structure';
13  
14 use strict;
15 use warnings;
16  
17 use Log::Report 'oodoc';
18  
19  
20 sub init($)
21 { my ($self, $args) = @_;
22 $args->{type} ||= 'Subsubsection';
23 $args->{container} ||= delete $args->{subsection} or panic;
24 $args->{level} ||= 3;
25  
26 $self->SUPER::init($args)
27 or return;
28  
29 $self;
30 }
31  
32 sub findEntry($)
33 { my ($self, $name) = @_;
34 $self->name eq $name ? $self : ();
35 }
36  
37 #--------------
38  
39 sub subsection() { shift->container }
40  
41  
42 sub chapter() { shift->subsection->chapter }
43  
44 sub path()
45 { my $self = shift;
46 $self->subsection->path . '/' . $self->name;
47 }
48  
49 1;