| 1 | # Copyrights 2003-2015 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.01. | ||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||
| 6 | package OODoc::Text::SubSubSection; | ||||||||||||||||||||||||||||
| 7 | 1 | ▶ | use vars '$VERSION'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 8 | 1 | $VERSION = '2.01'; | |||||||||||||||||||||||||||
| 9 | |||||||||||||||||||||||||||||
| 10 | 1 | ▶ | use base 'OODoc::Text::Structure'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||
| 12 | 1 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 13 | 1 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||
| 15 | 1 | ▶ | use Log::Report 'oodoc'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||
| 18 | sub init($) | ||||||||||||||||||||||||||||
| 19 | 0 | ▶ | { my ($self, $args) = @_; | ||||||||||||||||||||||||||
|
Subroutine
init: not called CC=6 SCAR=37.4
Pod
undocumented
| |||||||||||||||||||||||||||||
| 20 | 0 | ▶ | $args->{type} ||= 'Subsubsection'; | ||||||||||||||||||||||||||
|
Condition0%0/2
$args->{"type"} ||= "Subsubsection"
MC/DC0%0/1
$args->{"type"} ||= "Subsubsection"
$args->{"type"}
Truth table0%0/2
A
A= $args->{"type"}
| |||||||||||||||||||||||||||||
| 21 | 0 | ▶ | $args->{container} ||= delete $args->{subsection} or panic; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$args->{"container"} ||= delete $args->{"subsection"}
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"}
| |||||||||||||||||||||||||||||
| 22 | 0 | ▶ | $args->{level} ||= 3; | ||||||||||||||||||||||||||
|
Condition0%0/2
$args->{"level"} ||= 3
MC/DC0%0/1
$args->{"level"} ||= 3
$args->{"level"}
Truth table0%0/2
A
A= $args->{"level"}
| |||||||||||||||||||||||||||||
| 23 | |||||||||||||||||||||||||||||
| 24 | 0 | ▶ | $self->SUPER::init($args) | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 25 | or return; | ||||||||||||||||||||||||||||
| 26 | |||||||||||||||||||||||||||||
| 27 | 0 | $self; | |||||||||||||||||||||||||||
| 28 | } | ||||||||||||||||||||||||||||
| 29 | |||||||||||||||||||||||||||||
| 30 | sub findEntry($) | ||||||||||||||||||||||||||||
| 31 | 0 | ▶ | { my ($self, $name) = @_; | ||||||||||||||||||||||||||
|
Subroutine
findEntry: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||||||||||||||||||
| 32 | 0 | ▶ | $self->name eq $name ? $self : (); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 33 | } | ||||||||||||||||||||||||||||
| 34 | |||||||||||||||||||||||||||||
| 35 | #-------------- | ||||||||||||||||||||||||||||
| 36 | |||||||||||||||||||||||||||||
| 37 | 0 | ▶ | sub subsection() { shift->container } | ||||||||||||||||||||||||||
|
Subroutine
subsection: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||
| 38 | |||||||||||||||||||||||||||||
| 39 | |||||||||||||||||||||||||||||
| 40 | 0 | ▶ | sub chapter() { shift->subsection->chapter } | ||||||||||||||||||||||||||
|
Subroutine
chapter: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||
| 41 | |||||||||||||||||||||||||||||
| 42 | sub path() | ||||||||||||||||||||||||||||
| 43 | 0 | ▶ | { my $self = shift; | ||||||||||||||||||||||||||
|
Subroutine
path: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||
| 44 | 0 | $self->subsection->path . '/' . $self->name; | |||||||||||||||||||||||||||
| 45 | } | ||||||||||||||||||||||||||||
| 46 | |||||||||||||||||||||||||||||
| 47 | 1 | 1; | |||||||||||||||||||||||||||