lib/OODoc/Text/Default.pm

filter: Statementstmt 65.3% 17 / 26 Branchbran 0.0% 0 / 6 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 62.5% 5 / 8 Podpod 66.6% 2 / 3 totaltotal 52.1% 24 / 46 SCAR 20.9
CC
5
Cov
50%
init
30.0
subroutine
2.0
value
2.0
CRAP 8.1
« blib/lib/OODoc/Format/Pod2.pm ↑ Summary lib/OODoc/Text/Option.pm »
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::Default;
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} ||= 'Default';
Condition0%0/2
$args->{"type"} ||= "Default"
l!l
00
MC/DC0%0/1
$args->{"type"} ||= "Default"
$args->{"type"}
Truth table0%0/2
A
A= $args->{"type"}
Aresult
11
00
23 0 ▶ $args->{container} = delete $args->{subroutine} or panic;
Branch: 1 branch
BranchTrueFalseTotal
$args->{"container"} = delete $args->{"subroutine"} or &panic() 0 0 0
24  
25 0 ▶ $self->SUPER::init($args)
Branch: 1 branch
BranchTrueFalseTotal
$self->SUPER::init($args) or return 0 0 0
26 or return;
27  
28 0 $self->{OTD_value} = delete $args->{value};
29 0 ▶ defined $self->{OTD_value} or panic;
Branch: 1 branch
BranchTrueFalseTotal
defined $self->{"OTD_value"} or &panic() 0 0 0
30  
31 0 $self;
32 }
33  
34 #-------------------------------------------
35  
36  
37 0 ▶sub subroutine() { shift->container }
Subroutine subroutine: not called CC=1 SCAR=6.9
Pod documented
38  
39  
40 0 ▶sub value() { shift->{OTD_value} }
Subroutine value: not called CC=1 SCAR=6.9
Pod documented
41  
42 1 1;
« blib/lib/OODoc/Format/Pod2.pm ↑ Summary lib/OODoc/Text/Option.pm »