blib/lib/OpenFrame/Object.pm

filter: Statementstmt 100% 23 / 23 Branchbran 50.0% 1 / 2 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 3 totaltotal 79.4% 31 / 39 CC 3 SCAR 6.0
CC
3
Cov
89%
error
3.2
BEGIN
1.0
BEGIN
1.0
CRAP 1.8
« blib/lib/saofs.pl ↑ Summary lib/OpenFrame/Argument/Blob.pm »
1 package OpenFrame::Object;
2  
3 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 5 ▶use warnings::register;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 5 ▶use OpenFrame;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 5 our $VERSION=3.05;
9  
10 7 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
11 7 my $class = shift;
12 7 my $self = {};
13 7 bless $self, $class;
14 7 $self->init(@_);
15 7 return $self;
16 }
17  
18 4 ▶sub init {
Subroutine init: called CC=1 SCAR=0.0
Pod undocumented
19 4 my $self = shift;
20 }
21  
22 2 ▶sub error {
Subroutine error: called CC=3 SCAR=11.6
Pod undocumented
23 2 my $self = shift;
24 2 my $mesg = shift;
25 2 my $pack = ref( $self );
26 2 my ($package, $filename, $line, $subroutine, $hasargs,
27 $wantarray, $evaltext, $is_require, $hints, $bitmask) = caller( 1 );
28 2 ▶ if ($OpenFrame::DEBUG{ ALL } || $OpenFrame::DEBUG{ $pack }) {
Branch: 1 branch
BranchTrueFalseTotal
if ($OpenFrame::DEBUG{"ALL"} or $OpenFrame::DEBUG{$pack}) 2 0 2
Condition33%1/3
$OpenFrame::DEBUG{"ALL"} or $OpenFrame::DEBUG{$pack}
l!l&&r!l&&!r
200
MC/DC0%0/2
$OpenFrame::DEBUG{"ALL"} or $OpenFrame::DEBUG{$pack}
$OpenFrame::DEBUG{"ALL"} $OpenFrame::DEBUG{$pack}
Truth table33%1/3
A or B
A= $OpenFrame::DEBUG{"ALL"}B= $OpenFrame::DEBUG{$pack}
ABresult
1X1
011
000
29 2 warnings::warn("[$pack\::$subroutine] $mesg");
30 }
31 }
32  
33 5 1;
34  
35 __END__
« blib/lib/saofs.pl ↑ Summary lib/OpenFrame/Argument/Blob.pm »