MyConfig.pm

filter: Statementstmt 100% 18 / 18 Branchbran 100% 2 / 2 Conditioncond 50.0% 3 / 6 MC/DCmcdc 25.0% 1 / 4 Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 80.5% 29 / 36 CC 4 SCAR 7.1
CC
4
Cov
88%
AUTOLOAD
3.0
new
2.1
BEGIN
1.0
CRAP 2.0
« blib/lib/Module/TestConfig/Question.pm ↑ Summary
1 # -*- perl -*-
2 #
3 # This module was autogenerated by Module::TestConfig
4  
5 package MyConfig;
6  
7 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use vars '$AUTOLOAD';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 ▶sub new {
Subroutine new: called CC=2 SCAR=7.4
Pod undocumented
12 1 my $proto = shift;
13 1 ▶ my $class = ref $proto || $proto;
Condition33%1/3
ref $proto || $proto
l!l&&r!l&&!r
010
MC/DC0%0/2
ref $proto || $proto
ref $proto $proto
Truth table33%1/3
A || B
A= ref $protoB= $proto
ABresult
1X1
011
000
14 1 my $self = {
15 'one' => '1',
16 'three' => '3',
17 'testconfig_five' => '5',
18 'four' => '4',
19 'two' => '2'
20 }
21 ;
22 1 return bless $self, $class;
23 }
24  
25 6 ▶sub AUTOLOAD {
Subroutine AUTOLOAD: called CC=3 SCAR=11.0
26 6 my $self = shift;
27  
28 6 ($AUTOLOAD) = $AUTOLOAD =~ /(\w+)$/;
29  
30 croak "No such method: $AUTOLOAD"
31 6 ▶ unless defined $self->{$AUTOLOAD}
Branch: 1 branch
BranchTrueFalseTotal
unless defined $self->{$MyConfig::AUTOLOAD} or $MyConfig::AUTOLOAD eq "DESTROY" 1 5 6
Condition66%2/3
defined $self->{$MyConfig::AUTOLOAD} or $MyConfig::AUTOLOAD eq "DESTROY"
l!l&&r!l&&!r
501
MC/DC50%1/2
defined $self->{$MyConfig::AUTOLOAD} or $MyConfig::AUTOLOAD eq "DESTROY"
defined $self->{$MyConfig::AUTOLOAD} $MyConfig::AUTOLOAD eq "DESTROY"
Truth table66%2/3
A or B
A= defined $self->{$MyConfig::AUTOLOAD}B= $MyConfig::AUTOLOAD eq "DESTROY"
ABresult
1X1
011
000
32 || $AUTOLOAD eq "DESTROY";
33  
34 5 return $self->{$AUTOLOAD};
35 }
36  
37 1 1;
38  
« blib/lib/Module/TestConfig/Question.pm ↑ Summary