Mildew/AST/Assign.pm

filter: Statementstmt 70.4% 31 / 44 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 72.2% 13 / 18 Podpod n/a totaltotal 63.7% 44 / 69 CC 3 SCAR 8.7
CC
3
Cov
63%
__ANON__
9.6
__ANON__
1.4
__ANON__
1.3
CRAP 2.4
« Mildew/AST.pm ↑ Summary Mildew.pm »
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
BranchTrueFalseTotal
if defined $Mildew::took and $$Mildew::took{$self->id} 0 0 0
Condition0%0/3
defined $Mildew::took and $$Mildew::took{$self->id}
!ll&&!rl&&r
000
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}
ABresult
0X0
100
111
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
« Mildew/AST.pm ↑ Summary Mildew.pm »