| 1 | 4 | ▶ | use v5.10; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 2 | 4 | ▶ | use MooseX::Declare; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 3 | 4 | ▶ | class Mildew::AST::Assign extends Mildew::AST::Base { | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
__ANON__: called CC=1 SCAR=0.8
| |||||||||||||||||||||||||||||
| 4 | 4 | has 'lvalue' => (is => 'ro'); | |||||||||||||||||||||||||||
| 5 | 4 | has 'rvalue' => (is => 'ro'); | |||||||||||||||||||||||||||
| 6 | 0 | ▶ | method pretty { | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=1.2
Subroutine
__ANON__: not called CC=1 SCAR=2.6
| |||||||||||||||||||||||||||||
| 7 | 0 | $self->lvalue->pretty . " = " . $self->rvalue->pretty; | |||||||||||||||||||||||||||
| 8 | 4 | } | |||||||||||||||||||||||||||
| 9 | 0 | ▶ | method m0ld($target) { | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=1.2
Subroutine
__ANON__: not called CC=1 SCAR=2.6
| |||||||||||||||||||||||||||||
| 10 | 0 | $self->rvalue->m0ld($self->lvalue->m0ld_literal); | |||||||||||||||||||||||||||
| 11 | 4 | } | |||||||||||||||||||||||||||
| 12 | 0 | ▶ | method took { | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=1.2
Subroutine
__ANON__: not called CC=1 SCAR=2.6
| |||||||||||||||||||||||||||||
| 13 | 0 | $Mildew::took->{$self->id}; | |||||||||||||||||||||||||||
| 14 | 4 | } | |||||||||||||||||||||||||||
| 15 | 0 | ▶ | method simplified { | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=1.2
Subroutine
__ANON__: not called CC=1 SCAR=3.5
| |||||||||||||||||||||||||||||
| 16 | 0 | my ($rvalue,@setup) = $self->rvalue->simplified; | |||||||||||||||||||||||||||
| 17 | 0 | ($self->lvalue,@setup,Mildew::AST::Assign->new(lvalue=>$self->lvalue,rvalue=>$rvalue)); | |||||||||||||||||||||||||||
| 18 | 4 | } | |||||||||||||||||||||||||||
| 19 | 0 | ▶ | method forest { | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=1.2
Subroutine
__ANON__: not called CC=3 SCAR=22.6
| |||||||||||||||||||||||||||||
| 20 | 0 | my $node = $self->pretty; | |||||||||||||||||||||||||||
| 21 | 0 | ▶ | $node .= " - ".sprintf("%.4f",$self->took) if defined $Mildew::took && $Mildew::took->{$self->id}; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
defined $Mildew::took and $$Mildew::took{$self->id}
MC/DC0%0/2
defined $Mildew::took and $$Mildew::took{$self->id}
defined $Mildew::took
$$Mildew::took{$self->id}
Truth table0%0/3
A and B
A= defined $Mildew::tookB= $$Mildew::took{$self->id}
| |||||||||||||||||||||||||||||
| 22 | 0 | Forest::Tree->new(node=>$node,children=>[$self->lvalue->forest,$self->rvalue->forest]); | |||||||||||||||||||||||||||
| 23 | 4 | } | |||||||||||||||||||||||||||
| 24 | 4 | ▶ | } | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||