Object/InsideOut.pm

filter: Statementstmt 88.0% 22 / 25 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 77.1% 27 / 35 CC 2 SCAR 8.9
CC
2
Cov
81%
new
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.4
« Object/Hash/ChildrenAsList.pm ↑ Summary Object/Hash.pm »
1 package Tree::Object::InsideOut;
2  
3 1 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use Class::InsideOut qw(public register id);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
10 1 our $DATE = '2021-10-07'; # DATE
11 1 our $DIST = 'Tree-Object'; # DIST
12 1 our $VERSION = '0.080'; # VERSION
13  
14 1 public parent => my %parent;
15 1 public children => my %children;
16  
17 1 ▶use Role::Tiny::With;
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 1 with 'Role::TinyCommons::Tree::NodeMethods';
20  
21 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
22 0 my $self = register(shift);
23 0 ▶ $children{ id $self } //= [];
Condition0%0/2
$children{builtin::refaddr($self)} //= []
l!l
00
MC/DC0%0/1
$children{builtin::refaddr($self)} //= []
$children{builtin::refaddr($self)}
Truth table0%0/2
A
A= $children{builtin::refaddr($self)}
Aresult
11
00
24 0 $self;
25 }
26  
27 1 1;
28 # ABSTRACT: A tree object using Class::InsideOut
29  
30 __END__
« Object/Hash/ChildrenAsList.pm ↑ Summary Object/Hash.pm »