| 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)} //= []
MC/DC0%0/1
$children{builtin::refaddr($self)} //= []
$children{builtin::refaddr($self)}
Truth table0%0/2
A
A= $children{builtin::refaddr($self)}
| |||||||||||||
| 24 | 0 | $self; | |||||||||||
| 25 | } | ||||||||||||
| 26 | |||||||||||||
| 27 | 1 | 1; | |||||||||||
| 28 | # ABSTRACT: A tree object using Class::InsideOut | ||||||||||||
| 29 | |||||||||||||
| 30 | __END__ | ||||||||||||