lib/OODoc/Text/Example.pm

filter: Statementstmt 77.2% 17 / 22 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 61.1% 22 / 36 CC 4 SCAR 22.5
CC
4
Cov
61%
init
20.0
BEGIN
1.0
BEGIN
1.0
CRAP 9.4
« lib/OODoc/Object.pm ↑ Summary lib/OODoc/Text/Diagnostic.pm »
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::Example;
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';
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=4 SCAR=30.0
Pod undocumented
20 0 ▶ $args->{type} ||= 'Example';
Condition0%0/2
$args->{"type"} ||= "Example"
l!l
00
MC/DC0%0/1
$args->{"type"} ||= "Example"
$args->{"type"}
Truth table0%0/2
A
A= $args->{"type"}
Aresult
11
00
21 0 ▶ $args->{container} = delete $args->{container} or panic;
Branch: 1 branch
BranchTrueFalseTotal
$args->{"container"} = delete $args->{"container"} or &panic() 0 0 0
22  
23 0 ▶ $self->SUPER::init($args)
Branch: 1 branch
BranchTrueFalseTotal
$self->SUPER::init($args) or return 0 0 0
24 or return;
25  
26 0 $self;
27 }
28  
29 #-------------------------------------------
30  
31 1 1;
« lib/OODoc/Object.pm ↑ Summary lib/OODoc/Text/Diagnostic.pm »