Object/Metadata/Object.pm

filter: Statementstmt 81.8% 18 / 22 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 2 totaltotal 78.1% 25 / 32 CC 2 SCAR 3.6
CC
2
Cov
83%
parent
2.0
clone
2.0
BEGIN
1.0
CRAP 1.4
« Object/Metadata/Column/Text.pm ↑ Summary Object/Exception.pm »
1 package Rose::DB::Object::Metadata::Object;
2  
3 61 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 61 ▶use Clone();
Subroutine BEGIN: called CC=1 SCAR=0.0
6 61 ▶use Scalar::Util();
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 61 ▶use Rose::Object;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 61 our @ISA = qw(Rose::Object);
10  
11 61 our $VERSION = '0.722';
12  
13 sub parent
14 2837 ▶{
Subroutine parent: called CC=2 SCAR=6.9
Pod undocumented
15 2837 my($self) = shift;
16 2837 ▶ return Scalar::Util::weaken($self->{'parent'} = shift) if(@_);
Branch: 1 branch
BranchTrueFalseTotal
if @_ 519 2318 2837
17 2318 return $self->{'parent'};
18 }
19  
20 sub clone
21 0 ▶{
Subroutine clone: not called CC=1 SCAR=6.9
Pod undocumented
22 0 my($self) = shift;
23  
24 0 my $clone = Clone::clone($self);
25 0 Scalar::Util::weaken($clone->{'parent'});
26  
27 0 return $clone;
28 }
29  
30 61 1;
« Object/Metadata/Column/Text.pm ↑ Summary Object/Exception.pm »