File Coverage

lib/OODoc/Text/SubSubSection.pm
Criterion Covered Total %
statement 12 23 52.1
branch 0 4 0.0
condition 0 7 0.0
subroutine 4 10 40.0
pod 4 6 66.6
total 20 50 40.0


line stmt bran cond sub pod time code
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             our $VERSION = '3.05';
14             }
15              
16 1     1   6 use parent 'OODoc::Text::Structure';
  1         2  
  1         6  
17              
18 1     1   59 use strict;
  1         3  
  1         24  
19 1     1   3 use warnings;
  1         1  
  1         34  
20              
21 1     1   3 use Log::Report 'oodoc';
  1         1  
  1         5  
22              
23             #--------------------
24              
25             sub init($)
26 0     0 0   { my ($self, $args) = @_;
27 0   0       $args->{type} ||= 'Subsubsection';
28 0 0 0       $args->{container} ||= delete $args->{subsection} or panic;
29 0   0       $args->{level} ||= 4;
30 0           $self->SUPER::init($args);
31             }
32              
33             sub findEntry($)
34 0     0 1   { my ($self, $name) = @_;
35 0 0         $self->name eq $name ? $self : ();
36             }
37              
38       0 0   sub nest() { }
39              
40             #--------------------
41              
42 0     0 1   sub subsection() { $_[0]->container }
43              
44              
45 0     0 1   sub chapter() { $_[0]->subsection->chapter }
46              
47             sub path()
48 0     0 1   { my $self = shift;
49 0           $self->subsection->path . '/' . $self->name;
50             }
51              
52             1;