| 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
Condition33%1/3
$OpenFrame::DEBUG{"ALL"} or $OpenFrame::DEBUG{$pack}
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}
| |||||||||||||||||||||||||||||
| 29 | 2 | warnings::warn("[$pack\::$subroutine] $mesg"); | |||||||||||||||||||||||||||
| 30 | } | ||||||||||||||||||||||||||||
| 31 | } | ||||||||||||||||||||||||||||
| 32 | |||||||||||||||||||||||||||||
| 33 | 5 | 1; | |||||||||||||||||||||||||||
| 34 | |||||||||||||||||||||||||||||
| 35 | __END__ | ||||||||||||||||||||||||||||