| 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::Option; | ||||||||||||
| 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'; | ||||||||||
|
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=5 SCAR=34.0
Pod
undocumented
| |||||||||||||
| 22 | 0 | ▶ | $args->{type} ||= 'Option'; | ||||||||||
|
Condition0%0/2
$args->{"type"} ||= "Option"
MC/DC0%0/1
$args->{"type"} ||= "Option"
$args->{"type"}
Truth table0%0/2
A
A= $args->{"type"}
| |||||||||||||
| 23 | 0 | ▶ | $args->{container} = delete $args->{subroutine} or panic; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 24 | |||||||||||||
| 25 | 0 | ▶ | $self->SUPER::init($args) | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 26 | or return; | ||||||||||||
| 27 | |||||||||||||
| 28 | 0 | ▶ | $self->{OTO_parameters} = delete $args->{parameters} or panic; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 29 | |||||||||||||
| 30 | 0 | $self; | |||||||||||
| 31 | } | ||||||||||||
| 32 | |||||||||||||
| 33 | #------------------------------------------- | ||||||||||||
| 34 | |||||||||||||
| 35 | |||||||||||||
| 36 | 0 | ▶ | sub subroutine() { shift->container } | ||||||||||
|
Subroutine
subroutine: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 37 | |||||||||||||
| 38 | |||||||||||||
| 39 | 0 | ▶ | sub parameters() { shift->{OTO_parameters} } | ||||||||||
|
Subroutine
parameters: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 40 | |||||||||||||
| 41 | 1 | 1; | |||||||||||